Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixpanel with Turbo Rails #120

Open
mpaluy opened this issue Feb 7, 2023 · 0 comments
Open

Mixpanel with Turbo Rails #120

mpaluy opened this issue Feb 7, 2023 · 0 comments

Comments

@mpaluy
Copy link

mpaluy commented Feb 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant