<?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 Re: Checkout tracking variables in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/399070#M4505</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/475580"&gt;@CourageCalling&lt;/a&gt; and welcome to the Seller Community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wanted to reply here so your first post didn't fall through the cracks. Your best luck getting an answer to this complex question, will be at our Developer Forums. While some of our Sellers may know a bit of programming. Most of them are Sellers/Business Owners and not dedicated developers like you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have a moment take a peek at our &lt;A href="https://developer.squareup.com/forums" target="_blank"&gt;Developer Forums&lt;/A&gt; and ask away.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2022 21:22:10 GMT</pubDate>
    <dc:creator>JJ_</dc:creator>
    <dc:date>2022-10-01T21:22:10Z</dc:date>
    <item>
      <title>Checkout tracking variables</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/376817#M4503</link>
      <description>&lt;P&gt;I am attempting to set up a GTM datalayer on the checkout page for square.online.&amp;nbsp; It gives me a list of variables that I can use on the "Tracking Tools" page in the admin.&amp;nbsp; They are:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the following variables to fill in order details:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{txid}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Transaction id&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{orderid}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Square Order id or order token&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{storeName}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Store name&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{tax}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Tax value&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{shipping}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Shipping value&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{subtotal}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Order subtotal value&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{total}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Total order value&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{name}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Customer name&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{email}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Customer email&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;{items}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- Order items&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But when I add them to my code the only one that gets populated is `storeName`.&amp;nbsp; Here is the code I am attempting to add:&lt;/P&gt;&lt;PRE&gt;window.dataLayer = window.dataLayer || [];&lt;BR /&gt;dataLayer.push({&lt;BR /&gt;'event': 'purchase',&lt;BR /&gt;'storeName': '{storeName}',&lt;BR /&gt;'txid': {txid},&lt;BR /&gt;'orderid': {orderid},&lt;BR /&gt;'name': '{name}',&lt;BR /&gt;'email': '{email}',&lt;BR /&gt;'total': {total},&lt;BR /&gt;'subtotal': {subtotal},&lt;BR /&gt;'shipping': {shipping},&lt;BR /&gt;'tax': {tax},&lt;BR /&gt;'transactionProducts': {items}&lt;BR /&gt;});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I not adding them correctly?&amp;nbsp; It seems like I am since the storeName does get correctly populated, but none of the other variables.&amp;nbsp; Do I need to turn them on in some manner?&amp;nbsp; Sorry the documentation is extremely spartan on this topic.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 00:39:25 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/376817#M4503</guid>
      <dc:creator>farlandlee</dc:creator>
      <dc:date>2022-06-28T00:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checkout tracking variables</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/398648#M4504</link>
      <description>&lt;P&gt;Bumping this up as I'm interested in know this, too.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 19:19:55 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/398648#M4504</guid>
      <dc:creator>CourageCalling</dc:creator>
      <dc:date>2022-09-29T19:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Checkout tracking variables</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/399070#M4505</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/475580"&gt;@CourageCalling&lt;/a&gt; and welcome to the Seller Community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wanted to reply here so your first post didn't fall through the cracks. Your best luck getting an answer to this complex question, will be at our Developer Forums. While some of our Sellers may know a bit of programming. Most of them are Sellers/Business Owners and not dedicated developers like you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have a moment take a peek at our &lt;A href="https://developer.squareup.com/forums" target="_blank"&gt;Developer Forums&lt;/A&gt; and ask away.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 21:22:10 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/399070#M4505</guid>
      <dc:creator>JJ_</dc:creator>
      <dc:date>2022-10-01T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checkout tracking variables</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/605102#M4506</link>
      <description>&lt;P&gt;Bumping again, this is a real issue and no one is clarifying it on the developer forums. Did you find the solution&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/457046"&gt;@farlandlee&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:12:08 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Checkout-tracking-variables/m-p/605102#M4506</guid>
      <dc:creator>churreiro</dc:creator>
      <dc:date>2022-10-11T15:12:08Z</dc:date>
    </item>
  </channel>
</rss>

