Tutorial

How to Add Chat-Like Add on Scripts

There are some chat scripts or other add on scripts that may require their code to be added to the head of the page. There are a couple of options available within your MemberGate site to allow you to either add the chat script to all of the pages of your site, or to select which specific pages that should run the script.

*NOTE - This is not all encompassing as not every single add on script will have the same instructions for use. The guidelines found below are for scripts which include instructions on adding their code to the 'head' of the page.

The instructions below include information on adding the script as a custom script (this is a good idea to do first). If you would like to add the script to run on all of the pages, see the 'Add to All Pages' section, or if you'd like to choose which pages should run the script, see the section on 'Add to Specific Pages'

 

Click on each tab for more information

Do this First: Add as a Custom Script

Click on each section to expand for more information

1. Under 'Utilities' choose 'Add/Edit Custom Script'

Under 'Utilities' choose 'Add/Edit Custom Script'

 

Add Edit Custom Script
2. Select 'Add New Custom Script' from the drop down menu

 Select 'Add New Custom Script' from the drop down menu and click the 'Add/Edit Custom Script' button.

 

How to Use Add/Edit Custom Script
3. Set a Name for the custom script in the 'Custom Script Name' box

Set a Name for the custom script in the 'Custom Script Name' box. This will not be displayed anywhere on your site and is simply a description for you to know where the script is when looking for it at a later time.

 

4. Custom Script Category - This is an unused field and can be left blank.

Custom Script Category - This is an unused field and can be left blank.

5. Add the Script to the 'Custom Script' field.

Add the Script to the 'Custom Script' field. This code doesn't necessarily only have to be a script, it can also be html code, css code, plain text, etc. 

 

6. Set the status of the script

'Custom Script Status' - Choose if the script should be showing on the pages of the site. Set the script to be 'active' to show it or 'inactive' to disable the script from your pages.

 

How to Use Add/Edit Custom Script
7. Click the 'Add This Custom Script' button

Click the 'Add This Custom Script' button

8. Copy the cf tag.

Copy the cf tag.

 

How to Use Add/Edit Custom Script
9. Paste the cf tag where you would like the custom script to appear.

Paste the cf tag where you would like the custom script to appear. If you would like it on a content page, the cf tag can be pasted into the 'add or edit content' into the 'Text or HTML for this page'

 

How to Use Add/Edit Custom Script

Option A: Adding the Script to All Pages

Adding the script to all pages provides you with a really simple way to add a script to your site. It is only required to add the script in one spot, and it will automatically be added to all of your pages. Further customization or editing is not necessary.

For example, if you were running a chat script, the chat box can be added to every page by pasting the custom script cf tag in one box.

Click on each section to expand for more information

1. Under 'Master Settings' choose 'Edit Site Descriptions'

Under 'Master Settings' choose 'Edit Site Descriptions'

 

Edit Site Descriptions

 

 

2. Paste the CF tag from the Custom Script into the 'Javascript to appear on all pages' field

The CF code from the Custom Script can be pasted into the 'Javascript to appear on all pages' field

 

I have a script that needs to be placed in the 'head' section of the pages. Where should I place it?

 

 

NOTE: Please be careful with the scripts that are added to that field. An error in a script can have unexpected consequences.

Option B: Running the Script on Specific Pages

Adding the script to specific pages provides you with greater flexibility and allows you to choose which specific pages that you would like the script to run on.

For example, if you were running a chat script, you could select to just run the chat box on the subscription form page, the sales page and the contact us page.

Click on each section to expand for more information.

1. Under 'Master Settings' choose 'Edit Site Descriptions'

Under 'Master Settings' choose 'Edit Site Descriptions'

 

Edit Site Descriptions

 

 

2. The CF code from the Custom Script can be pasted into the 'Javascript to appear on all pages' field

The CF code from the Custom Script can be pasted into the 'Top Page Public Banner Ad Script' field and the 'Top Page Member Banner Ad Script'

 

Top and Bottom Banner Scripts

 

 

3. Enable the Banner Ad Script on your Specific Pages

The Banner Ad Scripts can then be manually enabled on the specific pages that you would like to run the script. 

When adding or editing content and department pages there is a field called 'Show Banner Ads'. Select 'Show Ad Only at Top of Page' from the drop down menu to run the script on that page.

 

Enable Top and Bottom Banner Scripts