Note 1: Below document is only for those customers who subscribed for SSL(HTTPS) from Moonfruit and require to have Google Analytics for their secured domain.

Note 2: If you have already have enabled Google Analytics for your previous un-secure domain, please let our chat support know. We can remove all un-secure links for you.


This document has 4 different sections:

  1. Update your domain URL as https at Google Analytics(GA)
  2. Get the GA Tracking Code and HTML Snippet
  3. Update the HTML Snippet in your Moonfruit Website
  4. (Optional) Track individual web-page in Google Analytics.

Section 1: Update your domain URL as https at Google Analytics(GA)

Login to Google Analytics using URL "https://analytics.google.com/analytics/web/"  

  1. Click on Admin on the left bottom corner of the page.
  2. Click on Property Settings. 
  3. Change the Default URL drop down as "https", if it is in 'http' option.
  4. Click Save.

Use the below picture for reference.

  1. Click on Admin on the left bottom corner of the page.
  2. Click on View Settings.
  3. Change the Default URL drop down as "https", if it is in 'http' option.
  4. Click Save

Use the below picture for reference.

Section 2: Get the GA Tracking Code and HTML Snippet

Get the Tracking ID from your Google Analytics Page.

Steps to get the Tracking ID:

  1. Click on Admin on the left bottom corner of the page.
  2. Click on Property Settings. 
  3. Get the Tracking ID, this Tracking ID is unique and can be obtained only from your Google Analytics login.

Replace your Tracking ID which starts with UA-XXXXXXXXX-1 to the below sample snippet. Please note there are 2 occurrence of this Tracking Code that needs to be replaced in the below sample code..

<html>
<head>
<script async
src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-XXXXXXXXX-1');
</script>
</head>
</html>

Section 3: Update the HTML Snippet in your Moonfruit Website

Please get the HTML Snippet from the above step which has your tracking code

  1. Login into your Moonfruit Portal.
  2. Edit the website that you wish to be tracked.
  3. Click on Insert as shown in the below picture

4. Select the “Page Footer” at the left panel as shown in the below picture. New pop up will be displayed at the middle of the page with tabs Page Master, Page Footer, Exit and Info 

5. Click on “Page Footer” in the pop up and select “HTML Snippet” from the drop down.

6. Click "Setup" Tab.
7.  Paste the HTML Snippet from Section 2. HTML Snippet should have complete tagging which starts from <html> till </html>.
7. Click Apply and Save to complete the changes.


Once the above changes from Section 1, Section 2 and Section 3 are complete, domain tracking can be monitored at Google Analytics. Please reach out to our chat-support if you need any assistance.

Section 4: (Optional) Track individual page in Google Analytics.

These steps are optional and only required if you wish to track individual page of your website.

  1. Login into your Moonfruit Portal.
  2. Edit the website that you wish to be tracked.
  3. Go to your Page which you wish to track using Google Analytics.
  4. Click Insert menu, select HTML Snippet from the left side of the menu.
  5. Paste the HTML snippet from Section 2 as shown in the below picture. Note: You can have this snippet at any location of your web-page.

6. Click Apply and Save as shown in the below picture.



Did this answer your question?