Comments (5)
Do you have a link to the differences between custom variables and custom dimensions/metrics?
#1 is the best for sure. The problem with it though is that looking for a slot
property already means you're only tracking one of five slots. Ideally you could fill all the slots with useful data.
A couple more ways you could do it:
- 4 — Take the first 5 properties of the identify and map them to the 5 slots. This is really unstable because it requires the properties to not change order.
- 5 — Recognize 5 properties as the properties we keep in slots (eg.
1:plan
,2:revenue
,3:gender
, etc.) for analytics.js and if any of the properties are there, record them to their slot. - 6 — Similar to 5, but allow the properties we look for to be passed into initialize. Problem is this is just a lot of extra work for the person initializing the Google Analytics provider. And even then, what happens when you want to switch slots?
Open to others if anyone wants to chime in. At this point, it seems like a lot of work for not that much gain. If you really need this kind of tracking this badly, why not use Mixpanel or KISSmetrics which are built for trait tracking.
from analytics.js.
After reading more about custom dimensions & metrics, I think they match the existing analytics.js API more closely than custom variables -- they are sent along with pageviews and events rather than separately.
https://developers.google.com/analytics/devguides/platform/features/customdimsmets
I don't currently have access to the new universal analytics features, but if/when I do I'll see about integrating pageview() and track() with those features.
from analytics.js.
Definitely, we'll be open to taking another look at these. I'm gonna close this for now, but feel free to re-open whenever it happens
from analytics.js.
I'm also really interested in passing traits from identify
to Google Analytics. I don't care as much about the identifier/email address, but more generic custom traits like isPaying
.
I'm not really sure if "Custom Dimensions & Metrics" or "Custom Vars" are the answer, but seems like one of them is. The page above actually says:
The fundamental difference between the two is that custom dimensions are primarily managed on the server side, whereas custom variables are primarily managed on the client side.
Seems like analytics.js might be a better fit for Custom Vars, set at the "Visitor" level.
Then again it's tricky because you can only send up to 5 vars.
Any more thoughts on this?
from analytics.js.
Any updates on this? From what I understand there's still no way to use analytics.js with setCustomVar methods from piwik or GA. Is that correct?
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.