since ‎18-09-2017
‎02-04-2020
mohammeda704170
Level 1
On Click event working, but eVar is not recording the button title
Avatar

mohammeda704170

mohammeda704170
- Dynamic Tag Management
Hello everyone,We've recently introduced a language translation tool to our website and I wanted to track it's usage. I have some simple event based rules setup in DTM for Activate/Deactivate and an event based rule for the menu option which was clicked, here is where I'm experiencing issues.The event fires if I click any of the menu options, but using this.getAttribute() with an eVar does not appear to be working.I'm using the Custom Code Editor and the event looks a little like this:s.linkTrac...

Views

1.2K

Likes

0

Replies

1
Re: Is it possible to use the Code Editor for "Data Element" to query two different objects and return one value?
Avatar

mohammeda704170

mohammeda704170
- Dynamic Tag Management
Hi Stewart, Many thanks for your help. Due to a regulatory requirement the site has to go live by a set date, with or without a dataLayer, but I will have one roughly 2-3 weeks later.Option two was a no brainer as I already created two of the data elements in your suggestion. I had one with an event to record the CSS selector page name as an eVar which I was then using in "Process Rules" in the report suite to populate the page name where it wasn't set. Works, but not very slick. This is exactly...

Views

1.2K

Likes

0

Replies

0
Is it possible to use the Code Editor for "Data Element" to query two different objects and return one value?
Avatar

mohammeda704170

mohammeda704170
- Dynamic Tag Management
We moved from GTM to DTM a little over 6 weeks ago and I'm still getting to grips with its functions.Scenario:I need to capture the page name in a Data Element using a DTM script/property used over two different domains.Domain 1 has a dataLayer, where I can use the standard 'JS Object' option to retrieve the page name e.g. digitalData.page.nameDomain 2 does not have a dataLayer and I have to use the CSS selector for where a business page name has been defined (not document.title) to retrieve the...

Views

1.7K

Likes

3

Replies

2