I tried using inner.HTML to capture the value for the tabs. I need to know if I did it correctly because the prop is not firing. I am trying to capture the values for each href for pamphlet, article and chapter. Below the code, you can what I did under conditions and Adobe Analytics to set the tracking up.
<dd class="active" id="page_scan_tab">
<a role="tab" href="#page_scan_tab_contents">Pamphlet</a>
</dd>
<dd class="active" id="page_scan_tab">
<a role="tab" href="#page_scan_tab_contents”>Article</a>
</dd>
<dd class="active" id="page_scan_tab">
<a role="tab" href="#page_scan_tab_contents”>Chapter</a>
</dd>
Under the Conditions, I added the following.
Element Tag or Selector: I added "a"
Property: I added "href"
Value: I added "#page_scan_tab_contents"
Under Adobe Analytics, I set the prop as follows:
prop73=%this.innerHTML
The tracking is not firing for prop 73. Can anyone provide any feedback as to what I did wrong?
Thank you,
Bill
Solved! Go to Solution.
Views
Replies
Total Likes
HI Bill,
I have changed the condition of the rule and it is now fired : SATELLITE: Rule "Content tab test 2" fired.
The image request contains prop73 with the right value :
Best regards.
Alexis Cazes
Senior Technical Support Engineer
Views
Replies
Total Likes
Hi,
Are you trying to use the option in this article described by Jan Exner ?
http://webanalyticsfordevelopers.com/2014/12/16/with-dtm-you-dont-need-data-elements/
I noticed that you missed a % at the end of "prop73=%this.innerHTML"
Or Are you trying to use Data Elements in DTM ?
Please provide the following details for me to review the issue further:
Best regards.
Alexis Cazes.
Senior Technical Support Engineer
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Bill,
In the condition you need to delete you exisiting property and recreate a new one.
When you create it a switch box for regex will be present, switch to green and it should be using regex.
[img]regex enabled.png[/img]
Best regards.
Alexis Cazes
Views
Replies
Total Likes
Hi Bill,
Are you able to see the rule being fired in the console when you enable DTM debug mode when you click on the link at all ?
If you cannot change slightly the condition for the property href to check against regex and it should work.
Let me know what you see after that.
Best regards.
Alexis Cazes.
Senior Technical Support Engineer
Views
Replies
Total Likes
I updated the tracking with the regex and it is still not working.
Bill
Views
Replies
Total Likes
Hi Bill,
Can you provide me the source code or the URL where you have implemented DTM ?
I will check and get back to you with a solution.
Best regards.
Alexis Cazes
Views
Replies
Total Likes
Here are a couple of URLs where the tabs use the same CSS selector, but need to report different results.
http://www.jstor.org/stable/27886895 - Tab name is "Article"
http://www.jstor.org/stable/10.5749/j.ctttt28q.13 - Tab name is "Chapter"
Thank you,
Bill
Views
Replies
Total Likes
HI Bill,
I have changed the condition of the rule and it is now fired : SATELLITE: Rule "Content tab test 2" fired.
The image request contains prop73 with the right value :
Best regards.
Alexis Cazes
Senior Technical Support Engineer
Views
Replies
Total Likes
I see the rule firing now. Thank you for all of your help on this.
Bill
Views
Replies
Total Likes
Alexis,
Was the update you made based on the image you provided in an earlier post? I tried to create it that way, but it did not get it to work. I am sure I missed something.
Thanks,
Bill
Views
Replies
Total Likes
Views
Likes
Replies