• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Tracking Links for Mixpanel in Eleven40

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Tracking Links for Mixpanel in Eleven40

This topic is: not resolved

Tagged: analytics, Eleven40, mixpanel, tracking

  • This topic has 1 reply, 1 voice, and was last updated 10 years ago by Zippy.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 25, 2016 at 8:48 am #177436
    Zippy
    Member

    I've setup mixpanel to track page views and I can use it to track all links on a page being clicked.

    However what I really want to track are specific links being tracked - the ones that go to my purchase forms.

    So this is the template that Mixpanel provides.

    <div id="nav">
        <a href="/">Home</a>
        <a href="/about">About</a>
        <a href="/pricing">Pricing</a>
    </div>
    <script type="text/javascript">
        mixpanel.track_links("#nav a", "click nav link", {
            "referrer": document.referrer
        });
    </script>

    Now if I replace
    mixpanel.track_links("#nav a", "click nav link"
    with
    mixpanel.track_links("a", "click nav link"
    I can track links, but if I use say a link to the contact page
    mixpanel.track_links("#contact-us", "Contact Us",
    I don't get any links tracked 🙁

    I don't know if I am doing something silly - as I don't normally code but when I looked at the source I couldn't see anything that set up the nav structure as described above....

    So my questions are - what do I need to change to set up on domain link tracking and secondly what do I need to do to set up off domain link tracking (to a subdomain on unbounce?)

    Also - would this work better on another theme?
    Also - do I need to change the CSS to get this to work?

    Thanks

    Denis

    http://businessmodel.guru/linkedin-business-model-canvas/
    January 25, 2016 at 8:49 am #177437
    Zippy
    Member

    and the mixpanel documentation

    https://mixpanel.com/help/reference/javascript#sending-events

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble