Trying to use innerHTML to capture dynamic event values, but not working | Community
Skip to main content
Level 3
October 16, 2015
Solved

Trying to use innerHTML to capture dynamic event values, but not working

  • October 16, 2015
  • 11 replies
  • 1757 views

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

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 Alexis_Cazes_

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 :

 

  1. AQB:
    1
  2. ndh:
    1
  3. pf:
    1
  4. t:
    26/7/2015 12:28:41 3 -60
  5. D:
    D=
  6. mid:
    15540699278863072830582516998898801120
  7. aid:
    2AE8FCA285313023-40000102E0055CCC
  8. aamlh:
    6
  9. ce:
    UTF-8
  10. pageName:
    article view
  11. g:
  12. cc:
    USD
  13. pe:
    lnk_o
  14. pev2:
    test
  15. pid:
    article view
  16. pidt:
    1
  17. oid:
  18. ot:
    A
  19. c73:
    Article
  20. s:
    1920x1080
  21. c:
    24
  22. j:
    1.6
  23. v:
    Y
  24. k:
    Y
  25. bw:
    574
  26. bh:
    955
  27. AQE:
    1

Best regards.

 

 

Alexis Cazes

 

 

Senior Technical Support Engineer

11 replies

Alexis_Cazes_
Level 10
October 16, 2015

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:

  • DTM Company:
  • DTM Web property:
  • DTM rule:
  • DTM Data element

Best regards.

 

Alexis Cazes.

 

Senior Technical Support Engineer