Print Page | Close Window

Adding Script to Header

Printed From: openElement Website
Category:

openElement


Forum Name: Scripts for Your Website
Forum Description: Samples of scripts you can insert on your website using the element 'block of code.'
URL: https://forums.openelement.uk/en/forum_posts.asp?TID=1667
Printed Date: Mar 28 2024 at 11:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding Script to Header
Posted By: gvause2
Subject: Adding Script to Header
Date Posted: May 27 2020 at 6:33am

Hi Forum:

I have an issue:

-          Need to add code in my openElement page. Thank in advance.
 

Consent Management Source

Please copy and paste this code into the header for each page on your website(s). It is important that this code be the first script in your document.

 

 



-------------
gv2



Replies:
Posted By: Hobby001
Date Posted: May 27 2020 at 5:18pm
Assuming that you are adding javascript code, open your project, open the targetted page.

In the editing pane top bar you will find a button Code, click on it and a code editing pannel will open.

Click on the plus sign

Add a name, select javascript then select Startbody, if it doesn't work, try with Header position




-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: gvause2
Date Posted: May 28 2020 at 7:50am

I really appreciate your response and help. 

You verified what I initially did was correct.  My script is for Consent Management purposes.

My challenge has been testing the functionality of this solution.

My script is located on line #22

It suppose to display:

This website stores data such as cookies to enable important site functionality including analytics, targeting, and personalization. By remaining on this web site you indicate your consent. http://cookiesandyou.com/" rel="nofollow -  

What are your thoughts?



-------------
gv2


Posted By: Hobby001
Date Posted: May 29 2020 at 12:52pm
Give a try to this one:  https://www.websitepolicies.com/create/cookie-consent-banner" rel="nofollow - https://www.websitepolicies.com/create/cookie-consent-banner

Then add the resulting code as HTML in the header



-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: gvause2
Date Posted: Jun 04 2020 at 5:56am
Thank you!


-------------
gv2



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net