public interface TagHandler
TagHandler
are responsible for handling a
specific type of tag.Modifier and Type | Method and Description |
---|---|
Set<JSONObject> |
getTags(Resource resource)
Returns one (or more) tag JSONObjects.
|
String |
getTemplatePath()
Returns the template path this TagHandler is registered for.
|
TagType |
getType(Resource resource)
Returns the of this
TagHandler . |
TagType getType(Resource resource)
TagHandler
.Tag
- resource (normally a configuration page).String getTemplatePath()
Set<JSONObject> getTags(Resource resource) throws JSONException
The format of the different product configuration is as follows.
{ "sc_account": ["bugzilla_dal"], "sc_instance_variable": "s", "sc_tracking_server": "adobetagmanagerengineering.d2.sc.omtrdc.net", "sc_charset": "UTF-8" }
{ "sc_account": ["bugzilla_dal"], "sc_instance_variable": "s" }
{ "sc_instance_variable": "s" }
{ "sc_instance_variable": "s" }
{ "tt_client_code": "tagmanagereng" }
resource
- Tag resource (normally a configuration page).Set
of tag JSONObjects in the following JSON format:
{ "type" : "custom", "description" : "some description", "client_js" : "var i=0;", "script_url" : "http://localhost/scripts/script.js", "product_config": { "tt_client_code" : "myclientcode" }, "trigger_conditions": { "conditional_start_timestamp" : 123456, "conditional_end_timestamp" : 123456, "conditional_match_hostname" : "localhost", "conditional_match_path" : "/my/path.html", "conditional_match_querystring_key" : "queryparameter", "conditional_match_querystring_value" : "queryparameter value", "conditional_match_cookie_key" : "cookiename", "conditional_match_cookie_value" : "cookie value" } }
JSONException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"