Client Login Agent Login
a1webstats posts

How to add javascript to Wix websites

If you’re wanting to add javascript to a Wix website, then it’s possible that the purpose of the javascript is to aid you in gaining more insights into your website traffic.  If that’s the case, then you’ll very much benefit from skimming through our page how to gain more business from your Wix website.

Now, onto how to install the javascript …

After many years waiting, Wix finally (2018) made it possible to add javascript code into Wix websites in a way that’s easier and works much better than before.

There was previously a problem that Wix didn’t play nicely with external javascript.  For example, A1WebStats customers would be able to see companies that visited their website, but not what they looked at page by page.  That problem is now gone.

There are some guides out there that focus on using the Wix App Market, but that method doesn’t have success with many types of javascript.

This guide focuses on the new method launched by Wix in February 2018.

11 steps to add javascript to Wix websites

  1. Log into your Wix account.
  2. Click on Manage & Edit site.
  3. Scroll down the left-hand panel and click on Tracking & Analytics.
  4. Click on New Tool.
  5. There are a range of standard tools (e.g. Google Analytics, Facebook Pixel) that you could choose from or …
  6. You can select Custom if your javascript choice is not showing (e.g. A1WebStats or Hotjar).
  7. If choosing Custom, you paste your javascript into the box titled ‘Paste the code snippet here’.
  8. Then give the Custom Code a name (e.g. A1WebStats if using our tracking code).
  9. In the section ‘Add Code to Pages’ select ‘Load code on each new page’ from the dropdown within the ‘All pages’ part.
  10. Choose whether you want the javascript to be placed in the Head, Body-Start, or Body-end. Choosing Head or Body – start will generally ensure that the javascript triggers consistently.
  11. Then click on Apply.

Now you just need to test the installation.

If you use A1WebStats then you need to go to your Wix website, move through various pages and then see that in real time within A1WebStats by selecting Filters – All Pages from the top navigation bar, and then you will see your movement through those pages.

If using A1WebStats, you will also now be able to see names of companies that visited plus what they looked at page by page after landing on your Wix website.

If you don’t use A1WebStats, you will be able to use the application (related to the javascript installed) to check that it’s working correctly.

And here’s a video run through of how to install javascript to your Wix website …


In case you missed it

At the top of this page we referred to our page how to gain more business from your Wix website.   If that’s what you’re looking to achieve, then that page is the starting point to putting more revenue on your bottom line.

Leave a Reply

Your email address will not be published. Required fields are marked *