Comments (5)
In the current implementation, this is not possible.
I will add an onBeforeTrack
event, where you can change the category and action names and even prevent sending specific metrics.
from komito.
@Tropicalista, try the following code:
var _komito = _komito || {
...
onBeforeTrack: function(event) {
// Change event.type, event.category, event.action or event.label here.
if (event.category == 'scroll' && event.action == 'depth') {
event.action = 'Scroll Depth';
}
// Prevent sending the data to the trackers for the specific metric:
if (event.category == 'video:vimeo') {
event.preventDefault();
}
}
};
from komito.
I've tested and seems to work well. Thanks
from komito.
Hi, sorry if I ask here, but is a related clarification.
Is it possible to set a custom dimension on this, somenthing like:
var _komito = _komito || {
...
onBeforeTrack: function(event) {
// Prevent sending the data to the trackers for the specific metric:
if (event.category == 'adblock') {
ga('set', 'dimension1', true);
}
}
};
or this will be not executed?
from komito.
Hi @Tropicalista, yes, absolutely.
It will be executed for all events tracked by Komito Analytics and you can put any code inside the event handler.
Thank you for the great use case!
from komito.
Related Issues (20)
- [gh-pages] Custom domain HOT 1
- [wiki] Create wiki page about Social Metrics tracked by Komito
- [wiki] Create wiki page about Videos tracked by Komito
- [wiki] Create wiki page about CTA tracked by Komito
- Bounce rate affected HOT 7
- Using with gtag.js HOT 4
- Scroll events and bounce rate HOT 1
- Extend form identifier
- Add orientation change tracking
- Add tracking pageviews with blocked ads HOT 1
- [gh-pages] Demo Console Errors HOT 2
- komito analytics not working HOT 2
- Implement HeartBeat event HOT 1
- Shopify Integration: Does not track add to cart, checkout, etc. HOT 3
- Add support to uBlock HOT 7
- Track error pages
- Send heartbeat only for active pages
- Google Analytics Bounce Rates HOT 3
- Self hosting and/or Subresource integrity HOT 4
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 komito.