-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
Component/s: Macros - Other - Native (1st Party)
-
1
-
Severity 3 - Minor
Add other Code Block macro to Confluence page
- insert the following javascript into the Code Block macro
<!-- Google Tag Manager -->
'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=zgPRY3zxAjMqsjVhJLF6CA>m_preview=env-7>m_cookies_win=x';f.parentNode.insertBefore(j,f);
<!-- End Google Tag Manager -->
h3. Environment
* Confluence Cloud
* Other Code Block macro
h3. Steps to Reproduce
# Create Confluence page
# Insert Code Block macro
# Paste the following portion of the gtm javascript into Code Block macro
'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=zgPRY3zxAjMqsjVhJLF6CA>m_preview=env-7>m_cookies_win=x';f.parentNode.insertBefore(j,f);
Expected Results
'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=zgPRY3zxAjMqsjVhJLF6CA>m_preview=env-7>m_cookies_win=x';f.parentNode.insertBefore(j,f);
Actual Results
'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=zgPRY3zxAjMqsjVhJLF6CA>m_preview=env-7>m_cookies_win=x';f.parentNode.insertBefore(j,f);
Notes
- So it's stripping the ">m and making it >m
'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=zgPRY3zxAjMqsjVhJLF6CA>m_preview=env-7>m_cookies_win=x';f.parentNode.insertBefore(j,f);Workaround
manually edit the script to reflect the original.
Concern is what is being stripped
- relates to
-
CONFCLOUD-56123 Code macro strips XML tags and line breaks when Confluence new design is enabled
-
- Closed
-
-
CONFCLOUD-56257 Code Block Macro doesn't allow pasting tags '<>'
-
- Closed
-