BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Scripts for Your Website
  New Posts New Posts RSS Feed - Adding Script to Header
  FAQ FAQ  Forum Search   Register Register  Login Login

Topic ClosedAdding Script to Header

 Post Reply Post Reply
Author
Message
gvause2 View Drop Down
Newbie
Newbie
Avatar

Joined: May 27 2020
Location: Males
Status: Offline
Points: 4
Direct Link To This Post Topic: Adding Script to Header
    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
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Direct Link To This Post 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


Back to Top
gvause2 View Drop Down
Newbie
Newbie
Avatar

Joined: May 27 2020
Location: Males
Status: Offline
Points: 4
Direct Link To This Post 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. data storage policy

 

What are your thoughts?

gv2
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Direct Link To This Post Posted: May 29 2020 at 12:52pm
Give a try to this one: https://www.websitepolicies.com/create/cookie-consent-banner

Then add the resulting code as HTML in the header

Back to Top
gvause2 View Drop Down
Newbie
Newbie
Avatar

Joined: May 27 2020
Location: Males
Status: Offline
Points: 4
Direct Link To This Post Posted: Jun 04 2020 at 5:56am
Thank you!
gv2
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.