James_T
(JT)
July 9, 2019, 1:19pm
1
We switched from GTM to Matomo recently and installed our GA (universal) and we can see it’s tracking, but it’s not capturing conversions which is affecting our advertising and retargeting.
Does anyone know how this should best be set up?
Also, has anyone used Google Optimize through Matomo and, if so, to what level of success?
Lukas
(Lukas Winkler)
July 10, 2019, 7:53am
2
Hi,
I honestly have no idea how GA works and can’t help you with that.
But this is the source of the GA tag in Matomo tag manager:
(function () {
return function (parameters, TagManager) {
var setup = {};
var isLibLoaded = false;
this.fire = function () {
if (!isLibLoaded) {
isLibLoaded = true;
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(parameters.window,parameters.document,'script','https://www.google-analytics.com/analytics.js','ga');
}
var propertyId = parameters.get('propertyId');
if (!(propertyId in setup)) {
setup[propertyId] = true;
ga('create', parameters.get('propertyId'), 'auto');
}
ga('set', 'anonymizeIp', true);
This file has been truncated. show original
If you have an idea how it needs to be changed to work in your case, please mention it.