Skip to content

Api Wrapper for Google Analytics Measurement Protocol written in Coldfusion for Coldbox framework

License

Notifications You must be signed in to change notification settings

akitogo/GoogleAnalyticsMeasurementProtocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Analytics Measurement Protocol

A wrapper for Coldfusion Coldbox

What is it good for?

Imagine you want to track anything within Google Analytics which can not use the GA Javascript tracking code E.g. track api traffic, events which are fired from your internal crm

Installation

This ColdBox Module can be installed using CommandBox:

box install GoogleAnalyticsMeasurementProtocol

Usage

var mp=getModel('MeasurementProtocol');
mp.setTrackingId('UA-xxxxxx-x');
mp.setDocumentLocationUrl('http://yourdomain/yourUrl?q=test');
mp.setIpOverride('xx.xx.xx.xx');
mp.setClientId(MeasurementProtocolService.CreateUUIDv4());
//writeDump(mp);

MeasurementProtocolService.send(mp);

Written by

www.akitogo.com

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Api Wrapper for Google Analytics Measurement Protocol written in Coldfusion for Coldbox framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published