Comments (9)
Talking this over with Calvin right now. The load callback is definitely something we want to add to make this possible. I think a good solution to this is a simple ready
method like jQuery uses:
analytics.ready(function () {
// Mixpanel stuff.
});
I'm hoping to hack on this tomorrow.
from analytics.js.
Rad 🍰 One constraint, I'd love to have multiple ready
functions. We've got a few register_once
s scattered around the page and it would be much easier than having to group them all together.
from analytics.js.
Gotcha, I'll make sure it works with multiple! Good call
from analytics.js.
Oh, another thing. We manually set the Mixpanel cookie name so we can do things like send super properties along with server events. We love the Segment.io web UI but don't get access to all the Mixpanel initialization properties. Any thoughts on how to fix that?
from analytics.js.
Curious to know, why do you need to change the Mixpanel cookie name to do that? I think they name your cookies by default mp_TOKEN_mixpanel
where TOKEN
is your site's permanent token that they give you.
from analytics.js.
Huh, verrry interesting. Ignore me then!
from analytics.js.
Haha no worries, got the ready working, so it'll be added real soon
from analytics.js.
Hey guys, I'd be sure to get in touch with Mixpanel before introducing dependencies on the default Mixpanel cookie name. That name might be changed in the future since it isn't part of our published API.
(Full disclosure, I work for Mixpanel)
from analytics.js.
Totally, we've got no dependencies on our end! Closing this since it got added a couple days ago
from analytics.js.
Related Issues (20)
- trackLink prevents links to open in top window
- Broken integrations links in the docs
- Support and documentation for Server Side Rendering and Static Site Generation HOT 1
- Possible to rename analytics() ?
- ga() function undefined in ready callback HOT 1
- Mixpanel received nothing from a JavaScript source
- [Guidance/ Advice] For client side tracking, how can i add analytics in UI component library to send event to my Segment?
- Google analytics.js confusion HOT 2
- analytics.js traits behave differently to Analytics for Android HOT 2
- A new Pinterest script is added to index.html at every `page` call HOT 1
- Firefox uncaught error: NS_ERROR_FILE_NO_DEVICE_SPACE HOT 1
- Use Google Analytics v4 HOT 1
- Page reloading in infinite loop in Firefox and Safari if tracking browser location object HOT 1
- While Inject Analytics Lib
- Link dead
- Question: why use identify API on every page accessible only to a loggedin user
- window._cio.page is not a function
- Analytics 2.0 session_id reset
- event.type comes through as "page" for track events
- Memory leak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.js.