[Launch] Set up Adobe Analytics events in Launch

Avatar

Avatar

hectorferrer

Avatar

hectorferrer

hectorferrer

22-07-2019

Hi.

I would like some advice in setting up AA events in Launch.

As an example, let's imagine the following scenario:

- I want to measure 10 clicks on the homepage.

- Each click has it's own event number in Adobe Analytics (s.event1 to s.event10)

- Each event has 3 different eVars associated to the click

- Example:

  • Click1 = s.event1 + s.eVar1 + s.eVar2 + s.eVar3
  • Click2 = s.event2 +  s.eVar4 + s.eVar5 + s.eVar6
  • ...
  • Click10 = s.event10 + s.eVar28 + s.eVar29 + s.eVar30

One Direct call for each one will be the easiest solution, but at the end, if you have 1000 events, you will need to create 1000 different options.

Another idea is using custome code, but not sure if thats the most optimized way of doing it.

Any suggestion?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ashokkumarm

Avatar

ashokkumarm

ashokkumarm

22-07-2019

Hi,

Yes. You can create the custom function to automatically pick the event number.

Try this method,

<script>

Function Random(e_id)

{

var a= "event" + e_id;

s.event = a;

s.tl();

}

</script>

<a href="test1.html" onclick="Random(1)">Test1</a>

<a href="test2.html" onclick="Random(2)">Test2</a>

Hope this method could helps you..!

Regards

Ashok

Answers (2)

Answers (2)

Avatar

Avatar

ashokkumarm

Avatar

ashokkumarm

ashokkumarm

22-07-2019

Hi

Is there any value passed in Link click to identify link count.

Regards

Ashok

Avatar

Avatar

hectorferrer

Avatar

hectorferrer

hectorferrer

22-07-2019

Thanks for your reply @ashokkumarm but I am talking about using Launch, not directly adding the code in the website.

Best.