Know Your Customers
Identify visitors, track user behavior, and gain deeper insights about your customers by installing your Drip JavaScript snippet. Your JavaScript snippet is the direct link between your Drip account and your website. Every Drip account comes with its own unique snippet that you can copy and paste onto your website.
Install the snippet to track visitors on your site and to create personalized customer interactions. The snippet allows you to:
Locate Your Snippet
Find your snippet under Settings > Account > Site Setup. There is no need to modify the code, you can copy and paste it directly into your website code as it is.
You must be an account owner or an account admin to locate the Snippet in Drip.
Install Your Snippet On a Custom Site
Before you install your snippet, make sure that it has not been previously installed with any third-party integrations on your site.
Once you’ve confirmed that the snippet is not on your site, copy and paste the code found under Site Setup right before the closing </body>
tag on your website. Include this code on pages where you aren’t displaying any Drip forms so that we can accurately track visitor stats for you.
You can easily add your Javascript Snippet using Google Tag Manager. If you are using any of the following integrations, you do not need to manually install the snippet on your website: Drip for WordPress, Shopify, WooCommerce, BigCommerce, or V2 (Legacy).
Install Your Snippet on a Squarespace Site
To install your Drip JavaScript snippet to your Squarespace site:
-
Log in to your Squarespace account
-
Got to your Site Settings
-
Go to Developer Tools > Code Injection
-
Locate the Footer heading and paste your Drip snippet into the text area
-
Click Save to update your changes
Once saved, any active Widget opt-in forms currently activated in your Drip account will appear on your Squarespace site.
Install Your Snippet on a Weebly Site
To install your Drip JavaScript snippet on your Weebly site:
-
Log in to your Weebly account
-
Go to Sites Admin > Edit Site
-
Click Settings > SEO
-
Paste your JavaScript snippet into the Footer Code area
-
Click Save > Publish
Install Your Snippet on a Wix Site
Include your Drip JavaScript snippet via the Wix code editor.
-
Follow these instructions on how to locate and add custom code to your site
-
In your Wix site code, paste the snippet in between the "Body - Start" and "Body - End"
Install Your Snippet on a Shopify Site
Drip automatically installs your JavaScript snippet in your Shopify store’s theme when you connect the integration, so there is no need to do it manually.
Install Your Snippet on a Magento Site
For the Magento 2 extension, the Drip JS snippet is automatically installed on non-product pages when you connect the integration so you do not need to manually install it.
The Magento extension will no longer be available to new Drip customers on June 23rd, 2023.
Check the Snippet on your Website
Once you’ve published your site and installed your Drip JavaScript Snippet, double-check that the snippet appears in your site's source code by inspecting your site’s source code.
Inspect your site’s source code in Chrome, Firefox, or Explorer
-
Go to your website’s URL
-
Right-click on the page and select "View page source"
-
Search the code (Control + F) for “getdrip”
-
Arrow down until you see your snippet
Inspect your site’s source code in Safari
-
Go to the Safari menu bar
-
Click Safari > Preferences
-
Select the Advanced tab
-
Click Develop
-
Choose Show Web Inspector
Once you see the JavaScript snippet is showing in your site page source code then you're all set to go.