<?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>thread Redundant Tracking Code Causing Tracking Events to Fire Twice in Online Store</title>
    <link>https://community.squareup.com/t5/Online-Store/Redundant-Tracking-Code-Causing-Tracking-Events-to-Fire-Twice/m-p/821382#M43994</link>
    <description>&lt;P&gt;How do I stop Square Online pushing the view_item event twice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is driving me crazy. I have removed the google GA4 tracking code from the settings for my square website and have replaced it with custom code for the google tag manager (GTM).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there is some vestigial code still in my header that is causing the view_item event to fire twice when a product page loads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;lt;script data-cookieconsent="ignore"&amp;gt;&lt;/P&gt;&lt;P class=""&gt;window.dataLayer = window.dataLayer || [];&lt;/P&gt;&lt;P class=""&gt;function gtag(){dataLayer.push(arguments);}&lt;/P&gt;&lt;P class=""&gt;gtag('js', new Date());&lt;/P&gt;&lt;P class=""&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;How do I get rid of this?&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I know that the method to insert tracking code has changed since I first started with Square online, and I have a feeling that there are multiple instances of my old GA4 tracking code firing but I can't see it explicitly anywhere when I look in the page source. this "gtag" is the closest I could see.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Square support is absolutely not helpful in the slightest for this issue (or anything, really) so I'm praying that someone can help me here.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;It 100% is not an issue with google. It is something with how the page is loading and somehow deciding to double-send tracking data.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2025 17:10:48 GMT</pubDate>
    <dc:creator>abfabhb</dc:creator>
    <dc:date>2025-10-16T17:10:48Z</dc:date>
    <item>
      <title>Redundant Tracking Code Causing Tracking Events to Fire Twice</title>
      <link>https://community.squareup.com/t5/Online-Store/Redundant-Tracking-Code-Causing-Tracking-Events-to-Fire-Twice/m-p/821382#M43994</link>
      <description>&lt;P&gt;How do I stop Square Online pushing the view_item event twice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is driving me crazy. I have removed the google GA4 tracking code from the settings for my square website and have replaced it with custom code for the google tag manager (GTM).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there is some vestigial code still in my header that is causing the view_item event to fire twice when a product page loads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;lt;script data-cookieconsent="ignore"&amp;gt;&lt;/P&gt;&lt;P class=""&gt;window.dataLayer = window.dataLayer || [];&lt;/P&gt;&lt;P class=""&gt;function gtag(){dataLayer.push(arguments);}&lt;/P&gt;&lt;P class=""&gt;gtag('js', new Date());&lt;/P&gt;&lt;P class=""&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;How do I get rid of this?&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I know that the method to insert tracking code has changed since I first started with Square online, and I have a feeling that there are multiple instances of my old GA4 tracking code firing but I can't see it explicitly anywhere when I look in the page source. this "gtag" is the closest I could see.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Square support is absolutely not helpful in the slightest for this issue (or anything, really) so I'm praying that someone can help me here.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;It 100% is not an issue with google. It is something with how the page is loading and somehow deciding to double-send tracking data.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 17:10:48 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Online-Store/Redundant-Tracking-Code-Causing-Tracking-Events-to-Fire-Twice/m-p/821382#M43994</guid>
      <dc:creator>abfabhb</dc:creator>
      <dc:date>2025-10-16T17:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Redundant Tracking Code Causing Tracking Events to Fire Twice</title>
      <link>https://community.squareup.com/t5/Online-Store/Redundant-Tracking-Code-Causing-Tracking-Events-to-Fire-Twice/m-p/822269#M44104</link>
      <description>&lt;P&gt;Hey there,&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/695109"&gt;@abfabhb&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate you reaching out about the coding issue you're seeing. I am going to suggest taking this over to our develop pages. They will have more support for your issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Square Community is the home for Sellers to help other Sellers grow their business and answer their questions about Square. Since you're looking for a developer, my best advice here is posting this on our&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.squareup.com/us/en" target="_blank" rel="noopener noreferrer"&gt;Developer Forums&lt;/A&gt;&lt;SPAN&gt;. Once there, you can head over to the Support Tab on the top and choose Developer Forums or Discord Community. I am sure you will find answers and hopefully a Developer to work with.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 18:37:28 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Online-Store/Redundant-Tracking-Code-Causing-Tracking-Events-to-Fire-Twice/m-p/822269#M44104</guid>
      <dc:creator>Kassi_</dc:creator>
      <dc:date>2025-10-23T18:37:28Z</dc:date>
    </item>
  </channel>
</rss>

