[Launch] Set up Adobe Analytics events in Launch | Community
Skip to main content
hectorferrer
New Participant
Jul 22, 2019 10:51 AM UTC
Solved

[Launch] Set up Adobe Analytics events in Launch

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ashokkumarm
ashokkumarmAccepted solution
Level 4
Jul 22, 2019 11:41 AM UTC

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

3 replies

ashokkumarm
Level 4
Jul 22, 2019 12:20 PM UTC

Hi

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

Regards

Ashok

Translate
hectorferrer
New Participant
Jul 22, 2019 12:00 PM UTC

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

Best.

Translate
ashokkumarm
ashokkumarmAccepted solution
Level 4
Jul 22, 2019 11:41 AM UTC

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

Translate