Post in category
- Website installation - introduction 💡
- Installation to known platforms ⭐
- Adding a New Form
- Web Configurator - Field Pairing ⭐
- Web Configurator - Control Elements
- App - field mapping
- 📍 Addresses - settings
- 💼 Companies - settings
- ✉️ E-mails - settings
- 📞 Phone numbers - settings
- 👤 Names - settings
- Deactivating/activating services in a form
- Foxentry Appearance and Behavior 🎨
- Javascript API
- ⚙️ Rest API
- Determining the status of form validation
- Custom processing of validation data - Callbacks
- Cookies 🍪
- How to clear your browser cache
- API Key Expiration
- Shopify
Google Tag Manager
In this guide, you'll learn how to add the Foxentry add-on to your website or online store. The installation itself is split into two main parts, and our instructions make it easy even for complete beginners.
Copy the Foxentry script
The first step is to connect your website to Foxentry using a unique JavaScript code. This script enables instant data correction and autocomplete directly in your forms.
- In the Foxentry administration, go to the Installation and settings section (point 1 in the image).
- Copy your unique JavaScript code (point 2). Clicking on the code shows a "Copied" confirmation. If you don't have a project yet, see the guide on how to create one.
Installing the script via Google Tag Manager
Important note: GTM and cookie consent
If you use Google Tag Manager connected to a cookie banner (Consent Mode), the Foxentry script may not run at all for users who decline optional cookies. Those users would then miss out on autocomplete and validation entirely. We therefore recommend inserting the Foxentry code directly into the website's source code instead. That way you can be 100% sure validation will work for every user.
- In the Google Tag Manager (GTM) administration, click Tags (1.) in the left-hand menu, then click the New button (2.) in the top right.
- Give the new tag any name you like (e.g. Foxentry) (1.), then click anywhere inside the Tag Configuration block (2.).
- A menu with tag types opens on the right. Scroll down to the Custom section and select Custom HTML.
- Paste your copied JavaScript code from the Foxentry administration into the large text box.
- Next, click the Triggering block, located below the tag configuration.
- From the list of triggers, select All Pages.
- Confirm the whole tag setup by clicking the Save button in the top right corner.
- For the changes in your GTM container to take effect on the live site, you need to publish the workspace. Click the blue Submit button in the top right corner of the main screen (then confirm by clicking Publish).
Connect your form fields (mapping)
The script is now successfully placed on all your subpages. For validation and autocomplete to work, though, you need to tell Foxentry what each field in your form is for (for example, which field is for the email address and which is for the city). This connection is called mapping, and you have two options:
- Interactive web configurator: the fastest and most popular way. You launch the configurator directly over your form and assign the correct functions to fields with just a few clicks.
- Manual identifier setup: suited to more advanced users with HTML knowledge. In the Foxentry administration, you manually enter the identifiers of individual fields from your code (e.g.
#billing-cityorinput[name='email']). You can find out more in the manual mapping guide.