Help Center
Warning:The cross-domain tracking method describes in this article applies only to transitions from page A to page B using the tag.
Cross-domain tracking means that there are two or more different domains in a site, and links to different domains are measured as the same session.
For example, if you want to filter out users who go from a.com to b.com and convert on b.com, you need to set up cross-domain tracking to filter the numerical data and heatmaps on a.com.
Note: Transitions between subdomains do not fall under the category of cross-domain, so you do not need to change anything if there is a transition from www.test.com to sp.test.com. The session will continue on Ptengine automatically.
If you want to track anything happened on different domain, you will need to do cross-domain tracking.
_pt_sp_2.push('setCrossDomainLink,allManual');
※ As a minimum, you will need to implement the API in (A) above, but you can include tags implemented in B and C as well.
<script type="text/javascript"> if(!window._pt_sp_2){ window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,********'); _pt_sp_2.push('setCrossDomainLink,allManual'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('script'); atag.type = 'text/javascript'; atag.async = true; atag.src = _protocol + 'js.ptengine.jp/********.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(atag, s); })(); } </script>
Warning:The parts in red need to be unified.
<a href>="https://b.com/contact.html" onclick=“pt_domain”>Demo Request</a>
onclick="pt_domain"
_pt_sp_2.push('setCrossDomainLink,halfManual');
halfManual is a semi-manual mode. Once you add the above code to your website, the cross-domain processing will be executed for all buttons on the corresponding web page without any other modification.
<script type="text/javascript"<script type="text/javascript"> if(!window._pt_sp_2){ window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,********'); _pt_sp_2.push('setCrossDomainLink,halfManual'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() { var atag = document.createElement('script'); atag.type = 'text/javascript'; atag.async = true; atag.src = _protocol + 'js.ptengine.jp/********.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(atag, s); })(); } </script>
Was this article helpful?
Thanks for your feedback.
Sorry about that. Do you mind sharing how we can improve?
Write your feedback here...
We have received your feedback and will make sure to improve this article. We will get in touch with you once we do.