integrations icon indicating copy to clipboard operation
integrations copied to clipboard

Feature request: Extend fathom integration to track external links

Open KevinRohn opened this issue 1 year ago • 3 comments

Description

We use the Fathom integration for analytics on our GitBook pages. Currently, the functionality is limited to tracking only internal site links. However, Fathom also offers an "events" feature, which could be useful for tracking external link clicks.

I attempted to create an integration myself, but it requires script injection. Unfortunately, this functionality is not supported for private integrations.

It would be beneficial to support tracking events for external links. For more information, see Fathom's documentation on events.

Thank you in advance

KevinRohn avatar Apr 16 '24 15:04 KevinRohn

Hi @KevinRohn! Great feature request, and even nicer that you've already tried to build an integration for this. You are right in that we don't allow the script injection scope to be published, but if you would be interested in opening up a PR in this repo that would update the current Fathom integration, I'd be happy to review and test, and update the current integration if it's working well.

Let me know if that sounds interesting to you, and we can work on it!t

addisonschultz avatar Apr 16 '24 16:04 addisonschultz

Hi @addisonschultz, I would like to do this, but how can I test it before if I can not inject a script?

Should it work with the execution of the cmd gitbook dev <spaceID> ?

KevinRohn avatar Apr 17 '24 08:04 KevinRohn

I will need to grant access - but before that, I am able to test if you are able to submit a PR!

addisonschultz avatar Apr 17 '24 18:04 addisonschultz

Hi @addisonschultz,

sorry, rather later than never :) . I opened an PR https://github.com/GitbookIO/integrations/pull/534

KevinRohn avatar Sep 04 '24 12:09 KevinRohn

Closing as PR was merged 🙌

addisonschultz avatar Oct 01 '24 04:10 addisonschultz