<?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 Google Analytics | Problem Based on Association Labels in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/791689#M34095</link>
    <description>&lt;P&gt;My HubSpot website has custom objects set up for Locations and Counselors. The Counselors can be associated with several locations, because many of them work at more than one location. For Google Analytics purposes, Association Labels were set up to designate which location was the primary location for a counselor so only the primary location would get the page view in Analytics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching a screenshot below of the code on the counselor template that triggers the Google Analytics script, and it is supposed to recognize when a counselor has a primary location but it doesn't seem to be working properly. Any ideas or suggestions would be appreciated, but this may be a very specific issue we are running into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Code Screenshot:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Analytics Code | Counselor Template File" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/90601iBE0AC3F26124BBC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Analytics-Location-Code.jpg" alt="Analytics Code | Counselor Template File" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Analytics Code | Counselor Template File&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Website Address: &lt;A href="https://wefixbrains.com/" target="_blank" rel="noopener"&gt;wefixbrains.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 15:44:24 GMT</pubDate>
    <dc:creator>JDickerson0</dc:creator>
    <dc:date>2023-05-09T15:44:24Z</dc:date>
    <item>
      <title>Google Analytics | Problem Based on Association Labels</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/791689#M34095</link>
      <description>&lt;P&gt;My HubSpot website has custom objects set up for Locations and Counselors. The Counselors can be associated with several locations, because many of them work at more than one location. For Google Analytics purposes, Association Labels were set up to designate which location was the primary location for a counselor so only the primary location would get the page view in Analytics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching a screenshot below of the code on the counselor template that triggers the Google Analytics script, and it is supposed to recognize when a counselor has a primary location but it doesn't seem to be working properly. Any ideas or suggestions would be appreciated, but this may be a very specific issue we are running into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Code Screenshot:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Analytics Code | Counselor Template File" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/90601iBE0AC3F26124BBC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Analytics-Location-Code.jpg" alt="Analytics Code | Counselor Template File" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Analytics Code | Counselor Template File&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Website Address: &lt;A href="https://wefixbrains.com/" target="_blank" rel="noopener"&gt;wefixbrains.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 15:44:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/791689#M34095</guid>
      <dc:creator>JDickerson0</dc:creator>
      <dc:date>2023-05-09T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics | Problem Based on Association Labels</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/792390#M34114</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/292955"&gt;@JDickerson0&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a few general questions to help give the community more context:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Can you provide the code snippet of the code that deals with the Google Analytics script and the association labels?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Are there any errors or warnings in the browser console related to the script or the associations? If so, can you share them here, please?&lt;/LI&gt;
&lt;LI&gt;Have you verified that the association labels are being set correctly in the HubSpot custom objects? You can check this by using the API to fetch the associations&lt;/LI&gt;
&lt;LI&gt;Have you tested the Google Analytics script independently of the association labels to ensure that it's working as expected? This can help you isolate the issue to either the script or the association labels&lt;/LI&gt;
&lt;LI&gt;Make sure you've set up the tracking ID and other configurations correctly in your Google Analytics script&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/253326"&gt;@StjepanGrcic&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/14564"&gt;@gabriel-nextiny&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/122698"&gt;@Brenner&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;, do&amp;nbsp;you have any additional troubleshooting steps for Google Analytics-related issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 22:51:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/792390#M34114</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-05-10T22:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics | Problem Based on Association Labels</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/794293#M34183</link>
      <description>&lt;P&gt;Hello community!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the mention,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;. But, I can't help because it's too much technical to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;can help us.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 11:45:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/794293#M34183</guid>
      <dc:creator>Brenner</dc:creator>
      <dc:date>2023-05-16T11:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics | Problem Based on Association Labels</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/799827#M34367</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/292955"&gt;@JDickerson0&lt;/a&gt;&amp;nbsp;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope your question has been answered, if not, I'm tagging&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123775"&gt;@danmoyle&lt;/a&gt;&amp;nbsp;to help us.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 14:05:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/799827#M34367</guid>
      <dc:creator>Brenner</dc:creator>
      <dc:date>2023-05-27T14:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics | Problem Based on Association Labels</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/801189#M34395</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/122698"&gt;@Brenner&lt;/a&gt;.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/292955"&gt;@JDickerson0&lt;/a&gt;&amp;nbsp;I'm checking with the team I work with to see if anyone has a client they've worked with something similar on. I'll see if I can help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:13:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Google-Analytics-Problem-Based-on-Association-Labels/m-p/801189#M34395</guid>
      <dc:creator>danmoyle</dc:creator>
      <dc:date>2023-05-31T14:13:32Z</dc:date>
    </item>
  </channel>
</rss>

