Thanks for your question in the community! Just wanted to add on to some of the responses above, and confirm the expected behavior regarding tracking anonymous visitor activity on a headless Shopify setup.
As long as you’ve:
Manually added our Javascript to your store’s code (this includes onsite JS, Viewed Product and Added to Cart snippets). Instructions here
Enabled Anonymous Visitor Tracking on your Data settings,
You’ll be able to track the anonymous activity of visitors who were identified later on. Let me know if this helps, or if you have any additional questions.
From my understanding with working with different headlines Shopify stores in Scandinavia, this i my point of view.
Just to elaborate on the tracking in Klaviyo, so we have that out of the way. Klaviyo tracks anonymous users using a browser cookie called (_kla_id). This cookie is domain-specific, so as long as the checkout is on the same domain (Your Shopify store) the cookie will persist and be readable throughout the user journey, including during checkout.
So, when a person visits the checkout, or a footer or anything else on the site, where they can be recognized by their e-mail address and the set a cookie. Shopify will pass this information to Klaviyo, identifying the user. At this point, Klaviyo attempts to merge the anonymous events that have been collected before with the now-identified profile (With the provided e-mail and set klaviyo ID-cookie).
From that, Klaviyo can connect the dots between the anonymous user and the now-identified user. This sync ensures that all events (browse, add to cart and such, if the Shopify integration and script is set.
Hope that gives the explanation, that you where look for or else, let me know! :-)
I would love to help you solve this issue.
Christian Nørbjerg Enger Partner & CPO Web: Segmento.dk LinkedIn: @christianfromsegmento Voldbjergvej 22b, 8240 Risskov
Yes @jevawin , Klaviyo can sync anonymous events to an identified profile as long as the Shopify checkout is on the same domain and the Klaviyo cookie persists. When the user becomes identified during checkout, Klaviyo will attribute the anonymous browsing data to the identified profile. Ensure the Klaviyo script is implemented correctly for seamless tracking. Reach out if you need help setting this up.
Yes, Klaviyo can sync anonymous events with a user's profile when they become identified at checkout, even if the checkout is on a subdomain within the same domain (like your example).
This is because cookies set by Shopify on the main domain will still be readable by the checkout pages. Klaviyo uses these cookies to identify the user and associate their anonymous activity with their profile.
Thanks for your question in the community! Just wanted to add on to some of the responses above, and confirm the expected behavior regarding tracking anonymous visitor activity on a headless Shopify setup.
As long as you’ve:
Manually added our Javascript to your store’s code (this includes onsite JS, Viewed Product and Added to Cart snippets). Instructions here
Enabled Anonymous Visitor Tracking on your Data settings,
You’ll be able to track the anonymous activity of visitors who were identified later on. Let me know if this helps, or if you have any additional questions.
By clicking “Accept All Cookies,” you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
Privacy Preference Center
Your Privacy
Strictly Necessary Cookies
Performance Cookies
Functional Cookies
Targeting Cookies
Site Analytics
Your Privacy
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Privacy Notice
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Targeting Cookies
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Site Analytics
These cookies record your visit to our website, and are used to track your visit including information such as: web page interactions (clicks, hovers, focus, mouse movements, browsing, zooms and other interactions), referring web page/source through which you accessed the Sites, heatmaps and scrolls, screen resolution, ISP, and statistics associated with the interaction between device or browser and the Sites. If you are accessing our Services with a European IP address, you have been asked to consent to the use of these cookies (you are free to deny your consent).