How To Add Global Tracking Code
Do you think it would be helpful to know who visits your website? Would it surprise you to know you can track your visitors' time on your site, where they connect from, how they got to your site, what route they took through your site, their demographics (age, gender, geolocation), and much more?
There are a few steps to follow to get it set up, but it is well worth the time investment. As of writing this, Google Analytics is a free tool.
Step-by-Step Guide: (Updated 7/29/2021)
- Visit: analytics.google.com
- In the bottom left-hand corner, select the Admin Wheel
- Create an account (Benchmarking, Technical Support, and Account Specialists should all be preselected)
- This will prompt you to set up your property, which can be named the same as your account. Be sure to select your correct reporting time zone.
- This will then prompt you to fill in relevant information about your business and industry. Select 'Health' and we recommend the following intended uses: Measure Customer engagement, optimize site experience and measure data across platforms.
- Access your account dashboard by again selecting the Admin Wheel in the lefthand corner
- Under 'Property' select Data Streams
- From the prompt, select "Web"
- Input your website's URL and name your stream - https://fyzical.com/your-clinic
- Find your global site tag for implementation under "Tagging Instructions" opy the lines of code that starts with <!-- Global site tag (gtag.js) - Google Analytics -->
- Log into your PatientSites website editor dashboard and go to > Settings > Configuration (watch video below)
- Copy/past the code in the box to the right of Google Analytics code:
Inserting your Google Analytics Tracking Code - Word Document
*This video shows you how to insert your Facebook page, but it is the same place as your Google analytics code.
Here is the basic tracking code that you can place your UA tag in...
Google Tracking Code/ Tags: Replace the BOLD text with your UA code
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id= UA-123456789-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-123456789-1');
</script>