GoogleAnalytics4Processor instead@Deprecated @Component(value="blGoogleUniversalAnalyticsProcessor") @ConditionalOnTemplating public class GoogleUniversalAnalyticsProcessor extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor
| Modifier and Type | Field and Description |
|---|---|
protected String |
masterWebPropertyId
Deprecated.
Global value, intentionally only retrieved as a file property NOT via the system properties service
|
protected OrderService |
orderService
Deprecated.
|
protected boolean |
testLocal
Deprecated.
This will force the domain to 127.0.0.1 which is useful to determine if the Google Analytics tag is sending
a request to Google
|
| Constructor and Description |
|---|
GoogleUniversalAnalyticsProcessor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAffiliation()
Deprecated.
|
protected String |
getDisplayAdvertisingJs(String trackerPrefix)
Deprecated.
Builds the display advertising Javascript for the given tracker
|
protected String |
getItemJs(Order order,
String trackerPrefix)
Deprecated.
|
protected String |
getLinkAttributionJs(String trackerPrefix)
Deprecated.
Builds the linke attribution Javascript
|
String |
getMasterWebPropertyId()
Deprecated.
|
String |
getName()
Deprecated.
|
int |
getPrecedence()
Deprecated.
|
org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
getReplacementModel(String tagName,
Map<String,String> tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Deprecated.
|
protected Map<String,String> |
getTrackers()
Deprecated.
Grabs a map of trackers keyed by the tracker name with the analytics ID as the value
|
protected String |
getTransactionJs(Order order,
String trackerPrefix)
Deprecated.
Builds the transaction analytics for the given tracker name.
|
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
|
String |
getWebPropertyId()
Deprecated.
|
boolean |
isIncludeDisplayAdvertising()
Deprecated.
|
boolean |
isIncludeLinkAttribution()
Deprecated.
|
void |
setMasterWebPropertyId(String masterWebPropertyId)
Deprecated.
|
protected boolean |
shouldShowMasterTracker()
Deprecated.
|
@Value(value="${googleAnalytics.masterWebPropertyId}")
protected String masterWebPropertyId
protected OrderService orderService
@Value(value="${googleAnalytics.testLocal}")
protected boolean testLocal
public GoogleUniversalAnalyticsProcessor()
public String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessorpublic org.broadleafcommerce.presentation.model.BroadleafTemplateModel getReplacementModel(String tagName, Map<String,String> tagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
protected Map<String,String> getTrackers()
protected boolean shouldShowMasterTracker()
protected String getLinkAttributionJs(String trackerPrefix)
tracker - the name of the tracker that is using the link attributionprotected String getDisplayAdvertisingJs(String trackerPrefix)
tracker - protected String getTransactionJs(Order order, String trackerPrefix)
protected String getVariation(OrderItem item)
public String getMasterWebPropertyId()
public void setMasterWebPropertyId(String masterWebPropertyId)
public String getAffiliation()
public String getWebPropertyId()
public boolean isIncludeLinkAttribution()
public boolean isIncludeDisplayAdvertising()
Copyright © 2023. All rights reserved.