header-logo
Getting started with WixBuild your website and business with Wix. Try using our AI tools to create your website, customize templates, or hire professionals to build or enhance your online presence.
Creating a websiteRead how to use the Wix Editor and manage content on your site. Discover how to protect your visitors' privacy and make your site accessible.
Account & billingReview your account settings, manage your subscriptions and plans and understand your invoices.
Using the Wix mobile appsUse our mobile apps to run your business efficiently on the go and set up a dedicated app for your site members to stay in touch.
Connecting a domainFollow our step-by step guides to learn how to purchase, connect or transfer a domain for your site, and find out how to keep your site’s data secure.
Managing your businessGet tools to grow your business and web presence. Find the right tools for your specific needs, set up online payments and keep track of your site's analytics.
Promoting your siteLearn to make your site more visible promoting it on search engines, sending emails and running paid ads. Improve your online presence with practical tips.
Studio, Partners & EnterpriseGet the most out of your Studio or Enterprise account with advanced features that'll help you work more efficiently.
Need more help?Find solutions for site performance and technical issues, learn about issues we’re working to fix or contact us for help.
placeholder-preview-image
Wix LearnImprove your skills with our courses and tutorials.
Wix BlogGet tips for web design, marketing and more.
SEO Learning HubLearn to increase organic site traffic from search engines.
Website developmentBuild a custom site using our full-stack platform.
Hire a ProfessionalGet matched with a specialist to help you reach your goals.
placeholder-preview-image

Custom Code Loading Options

Important:
  • This feature is only available for sites with a connected domain
  • This is an advanced feature. 
Wix sites are built as single-page applications. This means that when a visitor arrives to your site, there is only one page load event. As site visitors move through your site, via page navigation or by clicking on links, the new page content is loaded dynamically, without the site reloading each time as a new page is requested. 
Tracking codes normally respond to a page load event to report that a pageview event occurred on the site. As Wix sites are single page applications, they report only one page load event for the entire site and navigation between pages within the site is reported using an event called 'pushState'. 
Alternatively, you can choose to rerun your custom code each time a site visitor navigates to a new page. 

Custom code loading options:

Load once (Default option)
With this option, your tracking code is loaded once. Your tracking code that is added to all pages will report one ‘page load’ event when the site is loaded for the first time. Any additional navigation inside the site can be tracked provided that your tracking code supports pushState events.
Note:
For this option to correctly report all pageviews seen by your site visitors, you must verify that your code can detect navigation via pushState. Please inquire with the provider of your custom code for more information regarding what page load event the code should be run on (first visit to the site or a new page). 
Important:
If you wish to install a custom code that does not appear in the list of tracking options provided, we recommend using Google Tag Manager. Click here to learn more.
Reload on every page
Tracking code is loaded again after every page navigation. This option forces your code to reload every time the user navigates to a new page.

Note: This option is not recommended for tracking pixels.

Helpmate

Hello

Need a bit more guidance?
Unlock personalized helpLog in to get the most out of Helpmate.