Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generoi/wp-genero-analytics
Some small Google Analytics additions
https://github.com/generoi/wp-genero-analytics
Last synced: 3 months ago
JSON representation
Some small Google Analytics additions
- Host: GitHub
- URL: https://github.com/generoi/wp-genero-analytics
- Owner: generoi
- Created: 2016-05-06T23:27:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T12:47:53.000Z (over 1 year ago)
- Last Synced: 2024-04-16T22:30:12.721Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-genero-analytics
> A Wordpress plugin with a few Analytics integrations.
## Features
- Add Analytics event options to Gravityforms
- Detects GTM and tracks both to Google Analytics and GTM if available.
- Provides logging for each event for easier debugging
- [WP Hubspot](https://github.com/generoi/wp-hubspot) integration that tracks CTA's and Form submissions automatically._Note as GTM has a different set of event attributes they're submitted as `.`, eg `Outbound.Click`, or `ContactForm.Send`._
### Submit an event with JavaScript
```js
window.Gevent('Category', 'Action', 'Label', function() {
// callback once event is submitted.
});
```### Track an arbitrary link
```html
Foo
```