Hey all,
We're looking to test a "5 for $50" upsell feature, and we only want to activate it for some subset of customers to our site. We are using Google Optimize and would like to have some JavaScript execute when a user first lands on our storefront to set some flag on either the customer or the cart that we can then key off of in our line-item scripts to decide whether or not to discount items.
We've tried and thought about a few things:
Has anybody had success impelmenting something like this in the past? Appreciate any help!
Thanks,
-Chris-
You could look into using Line Item Properties to help trigger the discount since those values can be read with Shopify Scripts.
Word of caution here hoever - it's not impossible for customers to add their own values when adding items to the cart. This means if you're adding the actual discount into the LIP, then it can be exploited.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |