Download the PHP package heyday/silverstripe-analytics without Composer
On this page you can find all versions of the php package heyday/silverstripe-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heyday/silverstripe-analytics
More information about heyday/silverstripe-analytics
Files in heyday/silverstripe-analytics
Package silverstripe-analytics
Short Description Heyday's standard analytics module
License BSD-3-Clause
Homepage http://github.com/heyday/silverstripe-analytics
Informations about the package silverstripe-analytics
silverstripe-analytics
Heyday's standard analytics module to be used across all sites requiring analytics
First, add details to SilverStripe configuration; for instance by creating an analytics.yml file with the following details:
For Google Tag Manager AnalyticsID will be something like:
For Google Analytics AnalyticsID will be something like:
Analytics for the site can now be included in a SilverStripe template simply with the following code in the relevant .ss file:
Google Tag Manager Code
Google Tag Manager code should be set as high in the <head>
of the page as possible:
However, if you do have meta tags that set the charset or http-equiv attributes, you'll want them to be at the very top of head, since browsers expect them to be among the first characters of an HTML document.
Google Tag Manager no script tag is now separate from the Tag Manager container. To use it in your template, just call the variable TagManagerNoScript
Google Analytics Code
Google Analytics Code code should be set just after the <body>
tag:
Using Google Search Console verification with Google Tag Manager
If you have a Google Tag Manager account, you can verify ownership of a site using your Google Tag Manager container snippet code.
To verify ownership using Google Tag Manager, choose Google Tag Manager in the verification details page for your site, and follow the instructions shown.
When copying Tag Manager code:
- You must have "View, Edit, and Manage" account level permissions in Google Tag Manager.
- Place the Tag Manager code immediately after the opening tag of your page. If you do not, verification will fail.
- You cannot insert a data layer (or anything other than HTML comments) between the tag and the tag manager code. If you do, verification will fail.
- Use the code exactly as provided; do no modify it. If you modify it, verification will fail.
For more information, check out this page: https://support.google.com/webmasters/answer/35179