Third-party analytics

To access your third-party analytics, go to the new Third-party analytics settings tab. From there, you'll be able to start gathering even more data on conversion rates for each of your Gumroad products. We currently support Google Analytics and Facebook Pixel tracking.

Domain Verification

You can verify your Facebook domain by entering the meta tag, which contains the Facebook domain verification code, generated from Facebook Business Manager.


To track conversions, set up retargeting, and measure ad performance, you can add snippets provided to you by services like Google, Facebook, Twitter, or others. This code will run based on your Location selection - on a product page after a purchase is completed, or both.

These third-party services will provide you with a block of code to insert between <head> and </head> on your website. Copy that block of code and paste it into the code box. Additionally, you can include your own custom JavaScript in a snippet. For example, the following snippet will log “Hello Gumroad!” to the browser console:

  console.log(“Hello Gumroad!”);

If ‘All Products’ is selected, that code will run for every successful sale you make. If you want to track products individually, make sure to select the product from the drop-down list. You can also choose to track for different locations - we currently support All pages, a specific Product page, or the Receipt page.

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 and better aid you in your cost analysis.

Here are a few examples of code you would use from third-party services to track as a snippet:

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 snippets to your Gumroad Third-party analytics settings tab in the code box: 

<!-- 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_ID and YOUR_CONVERSION_ID with your actual values.

Your conversion ID and label can be found in the "Use Google Tag Manager" tab of your conversion action page. For more details on this, check the Google Analytics and Gumroad doc.


For more information on Facebook Pixel please review this dedicated help center article.


After creating a campaign, go to  "Events Manager" and get the id from "Universal Website Tag". If it doesn't appear, you can click "Add event source" to create it.

Add the following tag in the code box under “Add snippet” (note: replace ’YOUR TWITTER ID’ with your actual ID from Twitter):

<img height="1" width="1" style="display:none;" src="’YOUR TWITTER ID’&p_id=Twitter"/>

You can learn more about Twitter Conversion tracking here.


To track sales via the TikTok pixel, set up a standard "Place an Order" event as detailed here. You can add the following code to the third-party analytics snippet section to track this event with the order value:

ttq.track("PlaceAnOrder", { 
    value: $VALUE,
     currency: $CURRENCY,
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