Update datalayer variables | Community
Skip to main content
January 22, 2016
Solved

Update datalayer variables

  • January 22, 2016
  • 3 replies
  • 1837 views

Hi

I might have missed it somewhere in the documentation but we plan to use adobe analytics and DTM on a site. I understand how to setup det datalayer at pageview with variables like pagename, sections, but

i would like to update a datalayer variable on a user interaction.

Lets say i have a js onclick function and there i want to update a variable in the datalayer and make sure that adobe registers the change, is that possible and how would i do that?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParitMittal

Hi Camillan,

Yes , We handle success events and conversion variables as well using Page Load rules and Event based rules etc. or by configuring Global Variables tab under tool configuration in DTM. 

Thanks & Regards

Parit Mittal

3 replies

ParitMittal
Level 10
January 27, 2016

Hi Camillan,

Thanks for reaching out to Adobe Dynamic tag Management Community. As per our understanding from the query, you are basically trying to create an event based data element such that the data element captures the value on a user interaction i.e. Click etc.  Please see the following link for more information on How to create event based data element. 

http://help-forums.adobe.com/content/adobeforums/en/marketing-cloud-forum/activation.topic.html/forum__aave-generally_weencount.html

Please feel free to reach out to us in case of any questions or queries.

Thanks & Regards

Parit Mittal

January 27, 2016

Hi ParitMittal

Thank you for answering my question.

Is this the way we are suppose to handle success events and conversion variables aswell ?

or is there a way to do a dataLayer.push like with GTM ?

ParitMittal
ParitMittalAccepted solution
Level 10
January 27, 2016

Hi Camillan,

Yes , We handle success events and conversion variables as well using Page Load rules and Event based rules etc. or by configuring Global Variables tab under tool configuration in DTM. 

Thanks & Regards

Parit Mittal