Knowledge Base Article
In order to use Google Analytics with your SiteGround SiteBuilder, you need to upgrade it to the Pro version. This will allow you to use the Java Script or HTML widget which is necessary for the Google Analytics code integration. Check the SiteBuilder widgets article for more details.
Once you upgrade your SiteGround SiteBuilder to the Pro version, get the Google Analytics code from the official website.
More details regarding Google Analytics can be found in the How to configure Google Analytics for your website article.
The code will look like this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXXX-X");
pageTracker._trackPageview();
} catch(err) {}</script>
Change UA-XXXXXXXX-X with your unique Google Analytics code which can be found in your Google Analytics account.
The next step is to open your SiteGround SiteBuilder editor section. Pick the web page for which you want to insert the code. Open the Edit Layout section and click on New->Widgets->Java script or HTML. A new window will be opened. Paste the above code there and click on the Ok button.
You should repeat the above steps for all the web pages where you plan to have the Google Analytics code.
The last step is to republish the web site in order to make the modifications active. This can be completed by clicking on the Publish button.
Then you can monitor the web site traffic from your Google Analytics account.
Rating
|
Related Articles |
Views |

