Third-party analytics

To access your third party analytics, go to your Advanced Settings page. From there, you'll be able to start adding your information.

Many services provide you with a way to track your conversions, set up retargeting, see how well your ad campaigns are doing, and much more. Here we allow you to enter any analytics code provided to you by services such as Google, Facebook, and Twitter. This code will be run after a successful purchase is made.

The above services will provide you with a block of code to copy and paste between <head> and </head> on your website. Take that block of code and paste it into the text box. 

Make sure to select the product you want that code to run for. If you select ‘All Products’, that code will run for every successful sale you make.

Some services allow you to include the value, currency, and/or order number of the sale. We can enter those values for you if you add $VALUE, $CURRENCY, and $ORDER in place of the set price, currency, and order number respectively. For example, if the URL reads:

You can edit it to read:$VALUE&currency=$CURRENCY&noscript=1

Or if the URL reads:

You can edit it to read:$ORDER&value=$VALUE&noscript=1

This allows us to post the actual values of each sale to better aid you in your cost analysis.

Note: You can only have one analytics code block per product. You can combine analytics code from various websites (e.g. combining Facebook and Twitter) into one text box. Also, analytics code for ‘All Products’ and an individual product will both run if that individual product is purchased.

Here are a few examples of code you would copy from the various services.

Google Ads

Go to this help-doc from Google and follow the step to create a conversion action in your Google Ads account. Once you have your Google Tag ID and conversion tracking ID, add these snippet to your Gumroad Advanced settings:

<!-- Google tag (gtag.js) - Google Ads -->
<script async src=""></script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'TAG_ID');

<!-- Event snippet for Example conversion page -->
  gtag('event', 'conversion', {'send_to': 'YOUR_CONVERSION_ID',
    'value': $VALUE,
    'currency': '$CURRENCY'

Note: Replace TAG_IDYOUR_CONVERSION_ID, and the placeholder values with your actual values.

Your conversion ID and label can be found in the "Use Google Tag Manager" tab of your conversion action page:


Facebook Pixel Conversion Tracking

Gain insight into the return of investment of your Facebook Ads by integrating your conversion pixel with Gumroad.

In Facebook, create a Pixel ID for Checkouts. Now copy the pixel code into a Third Party Analytics text box, select the product or all products, and click Update account details. We send back value and currency information on each sale, so you can track exactly the value of each conversion.

The status of your Conversion ID will be Unverified until someone actually clicks your product link on Facebook and buys your product. If you run a test purchase of the product through Facebook, this will verify and activate the pixel.

Also, please note that if you are using FB Pixel with Gumroad Overlay in your own website, it'll only work in the single-purchase-mode. Pixel tracking is not compatible with the bundle purchases or cart functionality, unfortunately. You will have to switch on the single-purchase-mode for all your products (you'll find the code for this from the 'Share' tab of your product's edit page) on the website for FB Pixel to track the purchases effectively.

Here's a dedicated help-doc for integrating FB Pixel with Gumroad: Facebook Pixel Tracking. You can also learn more about Facebook Pixel at Facebook's dedicated page.


  1. After creating a campaign, click "Events Manager"
  2. Get the id from "Universal Website Tag". If it doesn't appear, you can click "Add event source" to create it.
  3. Add this tag in Gumroad third party analytic (replace 04nd3 with your ID):
    <img height="1" width="1" style="display:none;" src=""/>

You can learn more about Twitter Conversion tracking here.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us