Integrating Tracking with GA.
The scope of this project is to link Gogle Analytics details (isp / geolocation) to custom tracking and to fix tracking issues.
1 - We will add a googleAnalytics account that will be embedded into the tracking mechanismt. This will set up custom variables for all uses visiting the sits tracked. To do this we need to mark the sessions as well as the users with custom id’s. As the custom tracking code is loaded we will assign custom id to the session and the user – our tracking ids.
The data will be then pulled per Google Analytics Api and merged with the details we have tracked
2 – The tracking must include an IP for any and all users! This will be achieved at server side to ensure correct matching
3 – To avoid 3rd party cookie issues with browsers we will need to use in site scoped cookies(1st party) and submit the details per URL/GET to server where this data will be linked with the IP and the session id. Once we have 100% tracking of session to IP we will be able to merge this data to the IP-person/company database to ensure the best matches.
4 – To avoid lost sessions we will implement a timed ticker that will ping the server evry 10 seconds ensuring that we know for a fact when the ticker goes silent that the clinet went off-site.
5 – To avoid missreported url, these will be read out at client side and sent via ajax as parameters to the server.
1 – client side
– integration with GA(custom dimensions), CORS capable ajax to do cross domain calls, but for added safety we will use URL parameters.
- Time ticker – to ensure accurate time on page readouts.
2 – server side
– IP detection, identify cohorts (same GA session id with multiple IPs will need to be bunched together), once positive IP detection in IP to person database is done the client will be known.
There are no new views to be added, the only changes will be to the existing view so that isp/ip/geolocation is correctly displayed.