mirror of
https://github.com/discourse/discourse.git
synced 2024-12-29 04:13:48 +08:00
FEATURE: support adobe analytics tags tracking (#30433)
https://experienceleague.adobe.com/en/docs/experience-platform/tags/home https://experienceleague.adobe.com/en/docs/platform-learn/implement-in-websites/configure-tags/add-embed-code
This commit is contained in:
parent
061d6fd7a7
commit
bf3279d75a
|
@ -14,4 +14,10 @@ module CommonHelper
|
|||
def render_google_tag_manager_body_code
|
||||
render partial: "common/google_tag_manager_body" if SiteSetting.gtm_container_id.present?
|
||||
end
|
||||
|
||||
def render_adobe_analytics_tags_code
|
||||
if SiteSetting.adobe_analytics_tags_url.present?
|
||||
content_tag(:script, "", src: SiteSetting.adobe_analytics_tags_url, async: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
|
||||
<%= render_google_tag_manager_head_code %>
|
||||
<%= render_google_universal_analytics_code %>
|
||||
<%= render_adobe_analytics_tags_code %>
|
||||
|
||||
<link id="manifest-link" rel="manifest" href=<%= manifest_url %> crossorigin="use-credentials">
|
||||
|
||||
<%- if include_ios_native_app_banner? %>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<%= render partial: "common/discourse_publish_stylesheet" %>
|
||||
<%= render_google_tag_manager_head_code %>
|
||||
<%= render_google_universal_analytics_code %>
|
||||
<%= render_adobe_analytics_tags_code %>
|
||||
<%= preload_script 'publish' %>
|
||||
<%= preload_script 'pageview' %>
|
||||
</head>
|
||||
|
|
|
@ -2741,6 +2741,7 @@ en:
|
|||
page_loading_indicator: "Configure the loading indicator which appears during page navigations within Discourse. 'Spinner' is a full page indicator. 'Slider' shows a narrow bar at the top of the screen."
|
||||
show_user_menu_avatars: "Show user avatars in the user menu"
|
||||
about_page_hidden_groups: "Do not show members of specific groups on the /about page."
|
||||
adobe_analytics_tags_url: "Adobe Analytics tags URL (`https://assets.adobedtm.com/...`)"
|
||||
view_raw_email_allowed_groups: "Groups which can view the raw email content of a post if it was created by an incoming email. This includes email headers and other technical information."
|
||||
errors:
|
||||
invalid_css_color: "Invalid color. Enter a color name or hex value."
|
||||
|
|
|
@ -423,6 +423,9 @@ basic:
|
|||
about_page_hidden_groups:
|
||||
default: ""
|
||||
type: group_list
|
||||
adobe_analytics_tags_url:
|
||||
default: ""
|
||||
regex: "assets.adobedtm.com"
|
||||
extended_site_description:
|
||||
default: ""
|
||||
max: 10_000
|
||||
|
@ -446,6 +449,7 @@ basic:
|
|||
default: false
|
||||
hidden: true
|
||||
client: true
|
||||
|
||||
login:
|
||||
invite_only:
|
||||
refresh: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user