can mixpanel track links?
Hi Sakir, Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Yes, Mixpanel can track links. In the context of the JavaScript SDK, Mixpanel provides built-in methods to track link clicks. The SDK includes a method called track_links
that allows you to automatically track when users click on specific links on your website. This is part of the standard set of tracking functions available in the Mixpanel JavaScript library, as indicated in the installation snippet and method list: > ...methods called from this object will target your project.
...track track_pageview track_links track_forms... Docs / Tracking-methods / Sdks / Mixpanel SDKs: JavascriptAdditionally, if you enable Autocapture in the JavaScript SDK, Mixpanel will automatically track click events, including link clicks, without requiring manual instrumentation: ```mixpanel.init('YOUR_PROJECT_TOKEN', {
autocapture: true, // enable autocapture
});```Docs / Quickstart / Capture-events / AutocaptureFor mobile apps, such as Android, Mixpanel can also track in-bound and out-bound App Links, automatically capturing events like $al_nav_in
and $al_nav_out
when users navigate via deep links between apps Docs / Tracking-methods / Sdks / Mixpanel SDKs: Android.In summary, Mixpanel supports link tracking both automatically (via Autocapture) and through explicit methods in its SDKs.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.