Install Privy on Shopify
A unique Privy code must be installed on your Shopify store to show your displays, track visitor behavior (e.g., display views), and acquire order information for segmentation or targeting. The Privy app for Shopify performs this installation automatically without the need for coding or development skills. If you would prefer to place the code manually, please follow the manual steps listed below instead.
Features of the integration
Installing Privy will not modify your store theme or change any store settings when installed through the app store. Installing Privy through the Shopify app store will enable the following:
- Privy displays to show on your store's site.
- Privy displays data will automatically appear in Shopify's marketing reports.
- Automatic syncs of new email signups to Shopify. No need for automation rules.
- The automatic import of all existing mailable contacts from Shopify into Privy.
- An option to export contacts directly from Privy's contacts dashboard to Shopify.
- Changes to customer records in Shopify will automatically create or update contacts with the corresponding email address in Privy. Deletions are not replicated in either direction.
- Customers marked as “accepts marketing” in Shopify are automatically marked mailable in Privy.
- The creation and management of Shopify coupon codes within Privy.
Meanwhile, performing a manual installation only enables displays to show on your store's site and allows basic tracking information to be collected about visitors. Due to these limitations, a manual install is not recommended for most users.
Configuration
To install the Privy app for Shopify:
- Visit Privy's listing in the Shopify App Store.
- Click the Add app button.
- If you're not already logged into Shopify, enter your store URL and click Log in.
- On the app's install page, click the Install app button. If applicable, log into your Privy account and select which account you'd like to link. If you are already logged in and do not have multiple accounts, you'll automatically be redirected to your Privy homepage.
That's it! Your Privy code is now installed on your store, and applicable active displays will appear immediately.
Manual install
The automatic installation of the Privy app for Shopify is recommended for most users. Please confirm that standard installation does not fit your situation before proceeding with a manual install.
- From your Shopify dashboard, select the Online Store option from the sidebar.
- On the Themes dashboard, click the Actions dropdown menu and select the Edit code option.
- In the Layout section of the editor's sidebar, click on theme.liquid.
- Copy and paste your Privy code below the meta and link data in the <head> tag.
- In the upper right of the editor, click the Save button.
Great work! Privy has been manually installed in your store. Any applicable active displays will appear immediately.
Troubleshooting
The Privy code is missing
Sometimes, the Privy code does not appear in a store theme even though Privy's app is installed. In that case, it's possible that the current theme does not include the {{ content_for_header }} liquid variable. This variable is included in Shopify's default themes but can be removed intentionally or accidentally in custom themes. Privy requires this to inject the Privy code into your store.