https://github.com/generoi/wp-genero-analytics
Some small Google Analytics additions
https://github.com/generoi/wp-genero-analytics
Last synced: 26 days 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T12:47:53.000Z (almost 3 years ago)
- Last Synced: 2025-12-26T06:15:46.620Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 4
- 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
```