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

DTM - How to update a pre-defined Data Element

Avatar

Avatar
Validate 1
Level 2
michael_johns_6
Level 2

Likes

0 likes

Total Posts

19 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
michael_johns_6
Level 2

Likes

0 likes

Total Posts

19 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Affirm 1
View profile
michael_johns_6
Level 2

15-10-2015

I can't figure out how to dynamically update a pre-defined data element? For example if you are capturing onClick a custom HTML-5 attribute ('data-analytics-tracking-name') value and you want to update a pre-defined data element ('custom link name') with that new value? I can do it with a dynamically created data element as per below but not with a pre-defined data element?


var linkName = this.getAttribute('data-analytics-tracking-name');
_satellite.setVar('custom link name', linkName);
return true;
 

Replies

Avatar

Avatar
Give Back 25
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct Reply

330 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct Reply

330 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
shekhardhiman
Employee

15-10-2015

Hi There,

Thanks for reaching out to Adobe Community.

Please go through the below mentioned Data Elements doc to see how to work with data elements:

https://marketing.adobe.com/resources/help/en_US/dtm/data_elements.html

Thanks!

Avatar

Avatar
Validate 1
Level 2
michael_johns_6
Level 2

Likes

0 likes

Total Posts

19 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
michael_johns_6
Level 2

Likes

0 likes

Total Posts

19 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Affirm 1
View profile
michael_johns_6
Level 2

15-10-2015

Hi,

Please re-read my question as it is very specific and the document you pointed me to does not answer my question. I have scoured the web and can't find an answer yet?

 

Thanks,

Michael

Avatar

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Hi Michael,

One way you could go about this is by creating a dynamic data element and then setting a default value into it (when you create that data element).

Once the element is created, you can reference it in your code when you need to.

Please let me know if this helps

Regards

Rahul