Home > 3rd Party Setup Guides > e-Commerce Platforms > Shopify (Popup Cart Theme Installation)

Shopify (Popup Cart Theme Installation)

*SharpSpring Marketing Automation Users: This article is not applicable if you are a SharpSpring Marketing Automation user*

The purpose of this article is to help you create an audience for visitors who add a product to their cart if you have a store theme that contains a separate popup window for that process. This article should only be used if you were sent here by a SharpSpring Ads representative or if you know you have a Shopify theme that contains a pop up window for your store's cart. If your store does not use this type of cart, you should only follow our Automatic Installation instructions for Shopify.

First, make sure your Shopify store tracking is setup using the guide linked above. That will install all the basic tracking needed for your store. Once that is complete, you will need to add some additional code to your store's theme files.

Switch to your Shopify dashboard. Click Online Store, then Themes.

 

Click Actions, then Edit Code


Under Templates, select product.liquid.

Scroll to the bottom of the code and add this snippet to the box:

<script type="text/javascript">
window._pq = window._pq || [];
_pq.push(['track', 'CartAdd'])
</script>

This code will tell SharpSpring Ads that this user is trying to add a product to their cart. Save when you've added that code.

Next, we'll need to create the audience to store these visitors in your account.

In SharpSpring Ads, go to Manage-> Create Audience. Create the audience using the following criteria:

Name: Add to Cart
Duration: (Leave blank)
Method: Event
Event box: CartAdd

Your settings should look like this:

Click Create Audience when you're done. That's it! The audience is set to track users who add products to the cart in your pop up theme. If you have any problems or questions, please contact us at ads@sharpspring.com