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

Categorizing Your Custom Code

Categorize your custom code embeds (cookies) so that browsers can recognize the purpose of your code. All code has a purpose, which may be classified as either Essential, Marketing, Analytic or Functional.  Correct categorization helps your site comply with data privacy laws such as the GDPR and the LGPD. These laws require that your visitors can decline the use of non-essential cookies while using your site.
Custom codes are categorized as essential by default. This means that the code is loaded prior to visitor consent and cannot be disabled. If your custom code can be more accurately be described as either Marketing, Analytic or Functional code, it is your responsibility to classify it as such.
How to decide how your code should be categorized:
  • Essential cookies: These cookies are integral to the use of your site. They enable basic functionality such as security, identity verification and network management.
  • Marketing cookies: These cookies are used to track advertising effectiveness to provide a more relevant service and deliver better ads to suit visitor interests.
  • Analytic cookies: These cookies help to understand how visitors interact with your website, discover errors and provide a better overall analytics.
  • Functional cookies: These cookies collect data to remember choices visitors make to improve and give a more personalized experience.

To categorize your custom code:

  1. Go to Settings in your site's dashboard.
  2. Scroll down and click the Custom Code tab.
  3. Click + Add Custom Code at the top right.
  4. Add your custom code
  5. Click the Code Type tab.
  6. Select the category that best describes your code's purpose.
example of selecting analytics code
  1. Click Apply.

Helpmate

Hello

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