Limiting script to customers from certain sources by utm parameter?

New Member
7 0 0

We've been dreaming of a way to only have scripts apply to new customers from certain sources - ex. any customer that comes from a Facebook ad campaign. Is there any way to do this?

Shopify Expert
240 0 38

You could detect the utm parameter and store it as a cookie. Then you would have access to its setting for the life of the cookie. 

You could also use a cookie to mark if a customer is new.

Technical SEO Consultant - Specialising in setting up Structured Data for Rich Snippets, Google Analytics for advanced reports and the Google Search Console for efficient crawling.