Hello missing a['SkroutzAnalyticsObject']=e; from code.
And this must run in all pages!
I write a sample
(function(a,b,c,d,e,f,g){a['SkroutzAnalyticsObject']=e;a[e]= a[e] || function(){
(a[e].q = a[e].q || []).push(arguments);};f=b.createElement(c);f.async=true;
f.src=d;g=b.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g);
})(window,document,'script','https://analytics.skroutz.gr/analytics.min.js','skroutz_analytics');
skroutz_analytics('session', 'connect', 'SA-XXXX-YYYY'); // Connect your Account.
The auto template code is almost ok!
you missed a line on items!
<script>
skroutz_analytics('ecommerce', 'addOrder', JSON.stringify({
order_id: '6165',
revenue: '600.01',
shipping: '6.00',
tax: '114.97'
}));
sa('ecommerce', 'addItem', JSON.stringify({
order_id: '6165',
product_id: '959',
name: 'Καρέκλα γραφείου ανατομική Nec Comfort 02 Plus II black',
price: '239.52',
quantity: '2'
}));
</script>
yes, the only thing is that they change sa to skroutz Analytics.
Do you correct this issue to %TEMPLATE_DYNAMIC_CODE% ?
hello skroutz tracking code need some update
https://developer.skroutz.gr/analytics/
can you review (they are some fixes_)
i know that, but customer asked from me the other site tag. is it possible to make it happen ?
I intalled it but i still getting
<script data-fixedscript="1">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '805168194');
</script>
<script data-fixedscript="1">
gtag('event', 'page_view',
{'send_to': '',
'ecomm_pagetype': '',
'ecomm_prodid': '',
'ecomm_totalvalue': ,
'ecomm_category': ''
});
instead
<script type="text/javascript">
var google_tag_params = {
dynx_itemid: 'REPLACE_WITH_VALUE',
dynx_itemid2: 'REPLACE_WITH_VALUE',
dynx_pagetype: 'REPLACE_WITH_VALUE',
dynx_totalvalue: 'REPLACE_WITH_VALUE',
};
The url is the following
https://developers.google.com/adwords-remarketing-tag/parameters
thank you
I read the script but google suggest 4-5 different type of scripts. One of them is ecomm, the other is like this that i write above.
Is any way to implement this ?