Skip to main content
All CollectionsSharing your docsPublishing
Track published docs with Google Analytics
Track published docs with Google Analytics

Learn how to add a Google Analytics measurement ID to your Coda account to track your published docs

Updated today

Incorporating Google Analytics into your published Coda docs can significantly enhance your ability to understand and optimize user engagement with your content. By leveraging Google Analytics, you can gain valuable insights into user behavior, track session data, and make informed decisions to improve the overall effectiveness of your doc. If you’re already tracking web content using Google Analytics, you can log sessions for your published Coda Docs within your Google Analytics profile.

Within this article, you’ll find...


Add your Google Analytics ID

To track your published docs’ user sessions in Google Analytics, you simply need to add your Google Analytics Measurement ID to your Coda account settings. Then, all published docs from this Coda account will automatically be tracked by Google Analytics.

To add your Google Analytics ID to your Coda account, follow these steps:

  1. Navigate to coda.io/account

  2. Scroll to the Google Analytics Pixel ID section under Publishing.

  3. Click Add, then enter your Google Analytics measurement ID (formatted as G-XXXXXXXXX)

  4. Once entered, click Change to finalize

new - add google analytics measurement id.gif

Now that you’ve taken these steps in Coda, you can expect to see your tracked user sessions in Google Analytics. Check out this resource from Google to learn more about getting started.

💡 Tip: Can’t find your Measurement ID? Refer to this resource from Google.

Add a privacy policy

While we cannot offer direct legal advice, given the various data privacy laws worldwide, we recommend implementing a privacy policy if you log user sessions in Google Analytics.

If you already have a privacy policy for your business or website, you can provide a link in your account settings so that it is easily accessible to your doc viewers. Here’s how:

  1. Navigate to coda.io/account

  2. Scroll to the Privacy Policy section under Publishing

  3. Click Add to enter your privacy policy link.

16_9 (22).png

📣 Interested in learning more about publishing and policies? Visit Coda Publisher Analytics Guidance.

FAQs

How long does it take for my data to appear in Google Analytics?

Google Analytics may take anywhere from a few minutes to 24 hours to reflect new activity.

Which docs will be tracked by Google Analytics now that I’ve added my GA ID to my account?

Google Analytics will track user sessions for published docs associated with the Coda account you’ve added your GA ID to.

Can I track the data from a non-published Coda doc?

No. Google Analytics tracking is currently only available for published docs.

Does Coda have built-in publishing analytics tracking?

I want to bring my Google Analytics data into Coda via a Pack. How do I do that?

Check out this Pack in our Gallery to sync your Google Analytics data into Coda.


Related resources

Did this answer your question?