Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

[Launch] Set up Adobe Analytics events in Launch

hectorferrer
Level 1
Level 1

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!

1 Accepted Solution
ashokkumarm
Correct answer by
Level 5
Level 5

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

View solution in original post

3 Replies
ashokkumarm
Correct answer by
Level 5
Level 5

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

View solution in original post

hectorferrer
Level 1
Level 1

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

Best.

ashokkumarm
Level 5
Level 5

Hi

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

Regards

Ashok