Hi ! h_title
Support
Home
Developers
Javascript implementation
Javascript implementation

The app lets you tweak various settings for the Javascript implementation. These settings will cause immediate changes in the Javascript after publication.

 

Setting

Input

Description

Input element

List of input elements IDs

The element that contains the search term input, for example tweakwise-input, search, search-mobile.

Output element

Output element ID

The element where the product overlay should be.

Language

Dropdwon with available languages

Choose the language your visitors search in.

Root category

Root category of the search results

Set up the category that needs to be searched here.

Add-to-cart

Yes/no

Turn this on if you have an add-to-cart button in your product card.

Display color filters With or without name Choose whether the color swatches should be displayed with or without the color name.

Mobile

Numeric value

Width of mobile product grid, default is 2.

Tablet

Numeric value

Width of tablet product grid, default is 3.

Dekstop

Numeric value

Width of desktop product grid, default is 4.

Type

Google Analytics/Google Tag Manager

Activate the tracking of search actions in Google Analytics. Choose Google Analytics in case you use a direct Google Analytics implementatie with Google's analytics.js script. Choose Google Tag Manager if the Google Analytics script is loaded in via Google Tag Manager. For more information about tracking search action in Google Analytics, click here.

 


Has reading the relevant articles not helped you?

Share article

Link copied to clipboard

Cookies

We are using cookies.

Want to know more? Take a look at our cookie statement.

The Livechat uses trackingcookies, do you accept these cookies?

Accept