Comments (6)
Did you get this working? I'm also curious how to do GA metris using this module.
Thanks
from universal-analytics.
@istian ,
Mhm, I think the syntax I posted in the comment above was correct. So in my case 'cm1' is the custom metric with index 1 on Google Analytics. My problem was that I have set the scope of the metric to "Product" and I didn't receive any data. Dunno why, I'm not really a Google Analytics crack. If I remember this correctly, I started receiving data after I changed the scope to 'Hit'.
Nonetheless, I decided to use a different service for collecting my custom stats, because GA didn't really fit my purpose, or maybe I just don't really understand how these custom metrics and the scopes work.
I hope I can help you with this.
Best,
Sandro
from universal-analytics.
First of all I think the syntax is correct as well.
Second, make sure what @sandromartis said above: Set up the metric in Google Analytics and in most cases you want the "Hit" scope.
"Product" scope is only necessary/possible in ecommerce transactions.
from universal-analytics.
actually, I just want to know the syntax for sending custom dimension. I'm new and still trying to understand how to use this library. I assume that sending custom dimension syntax would be:
var totalUsers = 410;
visitor.event({
....
cd1: <my own value>
}, function (err) {
// …
});
from universal-analytics.
Looks good, make sure to send event category (ec
) and action (ea
) to make it a valid event.
from universal-analytics.
Thank you guys!
@sandromartis , I already hijacked this thread :)
from universal-analytics.
Related Issues (20)
- Ad tracking? HOT 1
- Vulnerability in "request" sub-package HOT 6
- Typescript support? HOT 1
- How to mark event as "User" (raising login event won't mark thing as user) HOT 1
- Custom dimensions with E-commerce tracking HOT 1
- GA + UA HOT 2
- 'Cannot read properties of undefined (reading '_readableState')' error occurred after 0.5.0 update HOT 2
- Payload data sent as object not working HOT 2
- IP not being assigned when using a proxy HOT 2
- Requests are being ignored by GA HOT 5
- Support for Event Values as String HOT 4
- Analytics no longer sent since upgrade from 0.4.23
- Transaction is not reflected being reflected on GA dashboard HOT 2
- Transactions are not being reflected on GA dashboard HOT 3
- Custom dimension and Event data not matching
- Universal Analytics Deprecation HOT 3
- Active users count differently with and without `strictCidFormat`
- Yarn problem with WebpackEncore
- Separate License file?
- Using HTTP proxy
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 universal-analytics.