<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding a Google Analytics tag to a page load rule in DTM in Adobe Analytics Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239405#M656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been asked to insert a Google Analytics tag to a page load rule in DTM.&amp;nbsp; I've implemented it in the normal fashion (sequential javascript), however, I need the tag to be populated with data by pulling in the data from data elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the following formats and nothing seems to work:&lt;/P&gt;&lt;P&gt;* %data_element%&lt;/P&gt;&lt;P&gt;* _satellite.getVar('data_element')&lt;/P&gt;&lt;P&gt;* _satellite.getDateElement('data_element')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our partners checked their Google Analytics instance and for the top option they are seeing %data_element% rather than the actual data.&amp;nbsp; For the other two formats they received no transaction data at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an image of the code (identifiable names changed), the three items in red are the objects that I want to be populated by data elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Google Analytics tag.jpg"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/11404i830F7781786F6F5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Google Analytics tag.jpg" alt="Google Analytics tag.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 08:59:52 GMT</pubDate>
    <dc:creator>mcbutterfant</dc:creator>
    <dc:date>2018-05-08T08:59:52Z</dc:date>
    <item>
      <title>Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239405#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been asked to insert a Google Analytics tag to a page load rule in DTM.&amp;nbsp; I've implemented it in the normal fashion (sequential javascript), however, I need the tag to be populated with data by pulling in the data from data elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the following formats and nothing seems to work:&lt;/P&gt;&lt;P&gt;* %data_element%&lt;/P&gt;&lt;P&gt;* _satellite.getVar('data_element')&lt;/P&gt;&lt;P&gt;* _satellite.getDateElement('data_element')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our partners checked their Google Analytics instance and for the top option they are seeing %data_element% rather than the actual data.&amp;nbsp; For the other two formats they received no transaction data at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an image of the code (identifiable names changed), the three items in red are the objects that I want to be populated by data elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Google Analytics tag.jpg"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/11404i830F7781786F6F5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Google Analytics tag.jpg" alt="Google Analytics tag.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 08:59:52 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239405#M656</guid>
      <dc:creator>mcbutterfant</dc:creator>
      <dc:date>2018-05-08T08:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239406#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you're setting the Insurer, product type and name in the GA tag are you surrounding the data elements by quotes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. are you doing this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ga('gcg.set','dimension70,"%data_element%");&lt;/P&gt;&lt;P&gt;or are you doing this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ga('gcg.set','dimension70,%data_element%);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should be doing the second one&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 16:25:37 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239406#M657</guid>
      <dc:creator>nikitaf2673776</dc:creator>
      <dc:date>2018-05-08T16:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239407#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nikitarama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried both ways.&amp;nbsp; The second option without the quotes brings up an error in DTM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error s.s.jpg"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/11402i119B1DC53E3DCF07/image-size/large?v=v2&amp;amp;px=999" role="button" title="error s.s.jpg" alt="error s.s.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 07:32:11 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239407#M658</guid>
      <dc:creator>mcbutterfant</dc:creator>
      <dc:date>2018-05-09T07:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239408#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var insurer = _satellite.getVar('data_element');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then later...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 16px;"&gt;ga('gcg.set','dimension70, insurer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 16px;"&gt;Edit: Check your data elements, are they javascript elements? Do they have a path that is different from their name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edit2: Are the data elements properly set up? Go to the page, open the dev console and enter _satellite.getVar('data_element'); Does the value you're expecting come up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:29:49 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239408#M659</guid>
      <dc:creator>nikitaf2673776</dc:creator>
      <dc:date>2018-05-09T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239409#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within custom code, you should use _satellite.getVar('data element name') to access the data element value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you first validate the data element value in browser console and proceed from there. Improper set up or timing issues could be resulting in empty data element at access time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 15:46:01 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239409#M660</guid>
      <dc:creator>DeepakKar</dc:creator>
      <dc:date>2018-05-09T15:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239410#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://experienceleaguecommunities.adobe.com/people/DeepakKar"&gt;DeepakKar&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After testing this method works but intermittently.&amp;nbsp; Our partner can see data populating for one test transaction but nothing for the rest of the transactions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be due to a timing issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 10:44:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239410#M661</guid>
      <dc:creator>mcbutterfant</dc:creator>
      <dc:date>2018-05-14T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Google Analytics tag to a page load rule in DTM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239411#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably a timing issue, is the data element pulling data from a data layer object on the page that is updated via ajax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 13:35:29 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/adding-a-google-analytics-tag-to-a-page-load-rule-in-dtm/m-p/239411#M662</guid>
      <dc:creator>Rydal_Williams</dc:creator>
      <dc:date>2018-05-17T13:35:29Z</dc:date>
    </item>
  </channel>
</rss>

