happstack-hsp-7.3.1: Support for using HSP templates in Happstack

Safe HaskellNone

HSP.Google.Analytics

Synopsis

Documentation

newtype UACCT Source

Constructors

UACCT String

The UACCT provided to you by Google (looks like: UA-XXXXX-X)

analytics :: (XMLGenerator m, StringType m ~ Text) => UACCT -> GenXMLList mSource

create the (even older) google analytics script tags

NOTE: you must put the analytics yourUACCT % immediately before the /body tag

You probably want to use analyticsAsync instead.

See also: addAnalytics, analyticsAsync, universalAnalytics

analyticsAsyncSource

Arguments

:: (XMLGenerator m, StringType m ~ Text) 
=> UACCT

web property ID (looks like: UA-XXXXX-X)

-> GenXML m 

create the google analytics asynchronous tracking script tag

This uses the now dubbed 'classic google analytics'

NOTE: you must put this right before the </head> tag see also: universalAnalytics

universalAnalyticsSource

Arguments

:: (XMLGenerator m, StringType m ~ Text) 
=> UACCT

web property ID (looks like: UA-XXXXX-X)

-> GenXML m