FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

GoogleAnalyticsMeasurementProtocol

v0.9.0 Public

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.

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
0.9.0 Aug 25 2017 07:10 AM Aug 25 2017 07:10 AM

 

$ box install GoogleAnalyticsMeasurementProtocol

No collaborators yet.
 
  • Aug 25 2017 07:10 AM
  • Aug 25 2017 07:10 AM
  • 447
  • 492
  • 3