Forum Support

Shape 5
March 28, 2024, 07:11:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Google Analytics script  (Read 1482 times)
maheshcha
Jr. Member
**
Offline Offline

Posts: 14



« on: January 05, 2017, 04:10:42 AM »

Hi,
I am trying to load Google Analytics scripts at the bottom of the page using "Script To Be Appended To The Bottom Of Index.Php" field in the Theme option, but it fails to save the code. I copied/pasted following script -

Code:
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-#########-1', 'auto');
  ga('send', 'pageview');

</script>

After I save the page and come back later on the page, the script is gone.

Did I do anything wrong here?

PS: I have moved the page to www.ethicaltravelportal.com from earlier demo site.

Thanks in advance for help.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: January 09, 2017, 12:49:13 PM »

Is that the only thing that is failing to save in the theme options, or is it failing to save other changes that you make?

If it's not saving other settings either, then it's likely a permissions issue with the file that stores the settings.  If every other change is staying saved, then I'm not sure exactly what could be causing the issue.  However, there's a solution that is probably better than using the theme options anyway: Just place a Clean Markup widget in the Debug position with the code.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
maheshcha
Jr. Member
**
Offline Offline

Posts: 14



« Reply #2 on: January 10, 2017, 01:40:58 AM »

Thank you Tristan. Later solution worked - inserted Google Analytical script in Debug widget with Clean markup widget.
However, everything else is staying saved but "script appended" field.

One more small issue - "Enable custom 1 overlay" is not selectable to No option. I have worked around with CSS background: none to overcome the issue.

Thanks a tons.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: January 11, 2017, 02:14:59 PM »

I'm not sure what you're referring to when you mention the overlay.  Is the setting not saving in the theme options?
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
maheshcha
Jr. Member
**
Offline Offline

Posts: 14



« Reply #4 on: January 13, 2017, 12:54:44 AM »

I'm not sure what you're referring to when you mention the overlay.  Is the setting not saving in the theme options?

Hi, thanks for response, I was talking about one in the screenshot as in the attachment. I could not select NO to overlay, on the Chrome browser in both Windows 7 and MacOS Sierra. I click on the dropdown and move the mouse, the dropdown menu disappears.

Thank you
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #5 on: January 13, 2017, 03:33:20 PM »

Have you tried using another browser?  If the issue only happens in Chrome, then it may be a browser extension that is causing the problem.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
maheshcha
Jr. Member
**
Offline Offline

Posts: 14



« Reply #6 on: January 16, 2017, 01:58:05 AM »

Have you tried using another browser?  If the issue only happens in Chrome, then it may be a browser extension that is causing the problem.

I have tried in Win Firefox and MacOS Chrome & Safari...the problem is same.

Thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #7 on: January 16, 2017, 03:31:56 PM »

Is that the only option in the admin that is having that problem?
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
maheshcha
Jr. Member
**
Offline Offline

Posts: 14



« Reply #8 on: January 17, 2017, 01:05:23 AM »

Is that the only option in the admin that is having that problem?

Yes, so far I know.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #9 on: January 17, 2017, 01:38:20 PM »

Have you installed the latest version of the Vertex Upgrade Patch?


The easiest way to make sure the patch is installed correctly is below:




===============
To install the patch:

1. Download the Vertex Upgrade Patch.
2. Back up your site (just in case).
3. Copy the vertex/footer.php from the theme folder to somewhere safe (you'll be putting it back after patching).
4. Delete the vertex folder from the theme (nothing else, that is the only thing to delete).
5. Extract the zip file containing the patch, and upload it to the theme folder through FTP, choosing "overwrite" if/when prompted.
6. Copy the footer.php file (from step 3) back into the vertex folder of the theme.

That's it. 

Or, to put it a different way:
1. Back up vertex/footer.php. 
2. Delete the vertex folder, then upload the extracted patch to the theme folder. 
3. Put the footer.php file back into the vertex folder of the theme.
===============


 
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.