Why is Google Analytics not integrated with Ajax
The etracker tracking code is necessary so that etracker can determine the website usage data (such as visitors and page views) and carry out testing and targeting.
The tracking code must be integrated once into all of the pages on your website to be measured.
This completes the basic integration and the following is automatically recorded:
- All page views with page title and URL (without URL parameters) with a dwell time accurate to the second and belonging to the navigation areas according to the URL structure
- All external link calls, download clicks and scroll events
- Allocation of visits by medium (type-in, SEO / SEA, social media, referrer)
- Google Analytics (UTM) campaign parameters (as origin, medium, campaign)
- All organic referrers (domain and path)
Optionally, you can also fill in the etracker parameters contained in the tracking code.
For special evaluations and reports, additional data can be transferred via interfaces, which must also be integrated into the website to be measured. The following interfaces are available:
- eCommerceAPI for recording product performance data, orders and transferring new order status (cancellation, lead to sales).
Your tracking code
The tracking code contains a unique key value for each account. Your personal tracking code will be displayed after you log in for the first time. You can also find it at any timeAccount info → Setup / Tracking Code.
Include tracking code
1. Standard integration
In order for etracker to be able to record the data of your website, the tracking code within the HTML source code must be on all pages to be measured on your website or in the template of your content management or shop system between the openingtag and the closing head> tag. If you use the etracker Optimiser, we recommend the tracking codeimmediately behind the opening tag or as close as possible to it, in order to minimize flickering when a page is called up.
The tracking code is structured as shown in the example below:
According to the EU directive, the parameterdata-block-cookies = "true" in the tracking code to ensure that no etracker cookies are set by default. You can optionally integrate the function for activating etracker cookies in your cookie notice in order to enable the setting of etracker cookies with consent.
If you use a common consent management solution, note these notes on how they work together so as not to incorrectly block cookie-less tracking.
After installing the tracking code, etracker immediately starts tracking your website.
2. Integration in PHP websites
Use this PHP code for this:
Here you can download the etracker.inc.zip file.
3. Integration in JSP websites
Use this JSP code to do this:
Download the file etracker-bean.jar (version 5.0) here.
4. Integration in Flash websites
Here we show you examples in ActionScript 2.0 and ActionScript 3.0 to integrate the tracking code into Flash websites. Use the ExternalInterface.call method to activate the etracker et_eC_Wrapper to call.
5. Integration in frames
A frameset usually consists of several small frames (e.g. with menus, copyright notices and titles) and a large main frame in which the actual content is displayed. If the visitor selects a menu item, the content of the main frame is changed. When counting page impressions, it is crucial which pages are viewed by visitors in this main frame. Therefore, for a correct counting of the page impressions, it is important to only insert the tracking code on the pages of the frameset that are reloaded in the main frame.
6. Integration in content management and shop systems
For content management or shop systems, the tracking code should be generated manually once and then inserted on the layout template. The parameters of the tracking code are then to be transferred through variables of the content management or shop system.
We also provide plugins for the common shop systems.
7. Integration into the Google Tag Manager
Proceed as follows:
1. Log in to Google Tag Manager with your Google account and password: https://www.google.com/intl/de/tagmanager/
2. Set up an account for a company and click Further.
3. Next, you set up a container for the company's website that will hold the tags for controlling the tracking code. Then click on Create account and container.
5. Integrate the container snippet shown in the window on every page of your website as described there.
7. Now click on Add a new tag.
Then on Tag configuration.
And then on Custom HTML tagto add a tag to your container with your etracker tracking code.
8. Activate the checkbox at document.write support. So that the tag can be created, it is now necessary to select a trigger and click on to save to confirm.
9. Remove the etracker tracking code from your website and click on Publishto deliver the container to the website with the tag.
Note: Please note that no data is collected between the removal of the tracking code from the website and the publication of the container.
8. Include integration with security headers
In order to integrate the tracking code in connection with content security policy or X-frame options headers, the necessary settings must be made in headers.
9. Tracking code for Google AMP pages
With etracker, it is also possible to track visitors, page impressions (PIs), length of stay as well as entries and exits on AMP pages. To do this, the page must be adjusted in a maximum of two places.
Must first amp-analytics be integrated. This is done in the HTML by adding a ScriptElements in HeadElement loads the appropriate script:
If several analysis tools are used at the same time (e.g. etracker and Google Analytics), the script only needs to be loaded once. After that, the body-Element amp-analytics with the etracker configuration involved.
In the code section above, the values for the parameters areas, et and pagename are to be assigned per page as described in the table below:
|et||Account key (unique per account)||Yes|
|pagename||Name under which the page can be found in etracker. If not set, the URL of the page is used for it.||No|
|areas||Areas to which the page is assigned.||No|
Tracking of links on non-AMP sites
If the AMP pages contain links to non-AMP pages in the same domain, you probably want to be able to reliably identify visitors coming from an AMP page on traditional pages as well. The following changes must be made for this:
- On the AMP page, all elements (hyperlinks) that refer to non-AMP pages are given additional attributes. These ensure that when the non-AMP page is called up, additional URL parameters are sent, which are transparently evaluated by the etracker code on the target page.
- On the target pages (non-AMP), immediately before (important: before, not after!) the e.js loaded the esSafeCrossDeviceTracking.js:
This script ensures that the tracking information created by AMP Analytics reaches etracker.
Additional attributes for AMP-to-non-AMP hyperlinks
To do this, the following attributes must be verbatim in aElements are inserted in the AMP-HTML:
A link to the page looks like this:
- How does college work I'm confused
- How can I calculate a Shillong tar
- What is an atomic variable in Java
- What's your favorite piece of the movie trivia
- Why is science a process
- Superboy would be able to defeat Superman
- What is the theory of supergravity
- What is space and free space
- What does magnum with belt mean?
- How do you practice 12 math
- Can I trust Ahmedabad rickshaws
- Does biotechnology have more leeway than BDS
- Go for a walk rather than drive
- What do Croatians think of Operation Oluja?
- Why do Latinos hate Donald Trump
- Is a living space in space possible
- What would make someone cheat?
- Stress or nerves can lead to hives
- How does Question2Answer make money
- Why is ammonia hybridized
- Is Joe Biden ready to be President?
- How long did smallpox last
- What are some lesser known musical instruments
- What are the best things about google