This topic contains 1 reply, has 2 voices, and was last updated by Dmitry Khrysev 8 years, 10 months ago.
- Topic
Hey guys,
So I have 2 questions about Piwik integration, to better understand how to implement it.
1. The tracking code that’s generated by OroCRM is based on Piwik code, if we already have Piwik tracking code on our website, should we have both tracking codes or replace original code with new OroCRM tracking code? I want to make sure Piwik keeps tracking our data. You might want to include a note about this either in the documentation or on that page to clarify this. Just a suggestion.
2. If we track sub-domains using one website property in Piwik, how should we treat it in OroCRM?
3. We have a few custom lines in our tracking code for tracking purposes, since we track several sub-domains, will they work with OroCRM tracking code? Here’s an example of our current tracking code:
123456789101112131415<script type="text/javascript">var _paq = _paq || [];_paq.push(["setCookieDomain", "*.website.net"]);_paq.push(["setDomains", ["*.website.net"]]);_paq.push(['setDocumentTitle', "WWW: " + document.title]);_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function() {var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.website.net/";_paq.push(['setTrackerUrl', u+'piwik.php']);_paq.push(['setSiteId', 1]);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);})();</script>As you can see, custom items are:
1234_paq.push(["setCookieDomain", "*.website.net"]);_paq.push(["setDomains", ["*.website.net"]]);_paq.push(['setDocumentTitle', "WWW: " + document.title]);_paq.push(['enableLinkTracking']);Document title changes per sub-domain, so we can see it better… so WWW changes to SUB1, SUB2, etc.
Looking forward to your answers. Thanks!
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.