window.dfc
is a function that allows you to pass a string and returns an int.
This string is persisted via localStorage and available to send to reporting solutions
like google optimize server side.
- Paste the inline js function into
template.liquid
as close to the<head>
as possible - Paste the ga additional code into shopify admin -> online store -> prefs -> Google Analytics for tracking experiments