GoogleUniversalAnalyticsProcessor instead@Deprecated public class GoogleAnalyticsProcessor extends AbstractModelVariableModifierProcessor
<blc:googleanalytics th:attr="orderNumber=${order != null ? order.orderNumber : null}" />
<script th:utext="${analytics}" />
| Modifier and Type | Field and Description |
|---|---|
protected String |
affiliation
Deprecated.
|
protected OrderService |
orderService
Deprecated.
|
protected boolean |
testLocal
Deprecated.
|
| Constructor and Description |
|---|
GoogleAnalyticsProcessor()
Deprecated.
Sets the name of this processor to be used in Thymeleaf template
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
analytics(String webPropertyId,
Order order)
Deprecated.
Documentation for the recommended asynchronous GA tag is at:
http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html
|
String |
getAffiliation()
Deprecated.
|
protected String |
getAffiliationDefault()
Deprecated.
|
protected Address |
getBillingAddress(Order order)
Deprecated.
|
int |
getPrecedence()
Deprecated.
|
boolean |
getTestLocal()
Deprecated.
|
protected String |
getVariation(OrderItem item)
Deprecated.
Returns the product option values separated by a space if they are
relevant for the item, or the product category if no options are available
|
protected String |
getWebPropertyId()
Deprecated.
|
protected void |
modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
Deprecated.
|
void |
setAffiliation(String affiliation)
Deprecated.
|
protected void |
setTestLocal(boolean testLocal)
Deprecated.
|
addCollectionToExistingSet, addItemToExistingSet, addToModel, processElementdoProcess, getMatcherprotected OrderService orderService
protected String affiliation
@Value(value="${googleAnalytics.testLocal}")
protected boolean testLocal
public GoogleAnalyticsProcessor()
protected String getWebPropertyId()
protected String getAffiliationDefault()
public int getPrecedence()
getPrecedence in class AbstractModelVariableModifierProcessorprotected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
modifyModelAttributes in class AbstractModelVariableModifierProcessorprotected String analytics(String webPropertyId, Order order)
webPropertyId - - Google Analytics IDorder - - optionally track the order submission. This should be
included on the page after the order has been sucessfully
submitted. If null, this will just track the current pageprotected String getVariation(OrderItem item)
protected void setTestLocal(boolean testLocal)
public boolean getTestLocal()
public String getAffiliation()
public void setAffiliation(String affiliation)
Copyright © 2015. All Rights Reserved.