コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

[Launch] Set up Adobe Analytics events in Launch

Avatar

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 受け入れられたソリューション

Avatar

正解者
Level 6

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 返信

Avatar

正解者
Level 6

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

Avatar

Level 1

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

Best.

Avatar

Level 6

Hi

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

Regards

Ashok