Skip to content

Mixpanel with Turbo Rails #120

Description

@mpaluy

I'm getting the following error while trying to use the Turbo Rails link:

Mixpanel error: The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.

My layout code is:

<HTML>
<head>

<%= mixpanel_code %>

</head>
<body>
...
<%= link_to "Settings", my_settings_path %>
...

</body>
</HTML>

This issue doesn’t exist if Turbo Rails is disabled.

What’s correct way to use mixpanel with Turbo?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions