Pk_vid not added when using Shopify on mutliple domains

Hello,

We have an ecommerce client who is using Shopify on different domains, all using the same store template. I followed the documentation here to install Piwik PRO: Shopify: install a tracking code | Piwik PRO help center.

I added _paq.push(["enableCrossDomainLinking"]); in the Shopify custom pixel and all domains in the _paq.push(['setDomains' command. Still, the pk_vid is not present in the URL when going from one domain to the other.

The redirect happens when the visitor selects a language, as there is a dedicated domain to each country where our client is shipping. The language selection is done via a form in the footer, so there is no direct links (<a>) between the domains. Maybe this is the reason why the parameter is missing?

I can share the domains and more details in private!

Thank you :slight_smile:

Hi @Thomas_Anode_FR,

The pk_vid parameter will be appended to the href attribute in an < a > element.
If you have some custom JS logic it will not work.

You can also use this method (getVisitorId) to add it manually with javascript -

You can provide this value to the pk_vid parameter

Please let me know if you have any questions.

Have a great day! :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.