AutoSync Visualizer
AutoSync Visualizer relies on AutoSync API, see more in the AutoSync API documentation.
Demo: AutoSync Visualizer | Demos
1. How to embed a visualizer
To add the visualizer to any page you must have a valid AutoSync API key. If you have a valid API key you can proceed to:
Create a container
div
with an ID.<div id="EXAMPLE-ID"></div>
Import the script into your page. This script should be at the end of the body tag.
<script src="AUTOSYNC_API_URL/js/Autosync.js"></script>
Call the
AutosyncVisualizer
constructor. You must provide the API key and the container ID. Use object notation to provide the following values.
Required Parameters
id
(String)
Description: The ID of the visualizer container
Usage: A unique identifier for the visualizer container in the DOM
Example:
id: 'autosync-visualizer'
key
(String)
Description: Your API key for authentication.
Usage: Ensure you replace 'YOUR_API_KEY'
with a valid API key.
Example:
Optional Parameters
adaptiveHeight
(Boolean)
Description: Adapts the iframe's height to the content inside.
Default: false
Example:
customStyleSheet
(String | null)
Description: Adds a custom stylesheet to modify the visualizer's style.
Default: null
Example:
disableQuoteForm
(Boolean)
Description: Disables the quote form after a user interaction with "Quote," "Buy," or "Add to Cart" buttons.
Default: false
Example:
homeStyle
(String | null)
Description: Determines the home layout style of the visualizer.
Options: 'lookup'
, 'segment_selection'
, 'vehicle_make_selection'
Default: null
Example:
onEvent
(Function | null)
Description: A callback function triggered on specific events.
Default: null
Example:
productSegment
(Array | String | null)
Description: Defines the product segments displayed in the visualizer.
Options: 'vehicles'
, 'tires'
, 'wheels'
, 'accessories'
Default: ['vehicles', 'tires', 'wheels']
Important: 'vehicles'
must be combined with at least one other option.
Example:
startPage
(String | null)
Description: Specifies the page where the visualizer will start.
Options: 'home'
, 'vehicles'
, 'tires'
, 'wheels'
Default: 'home'
Example:
scrollBar
(Boolean)
Description: Enables or disables the scrollbar.
Default: false
Example:
widget
(Boolean | Object)
Description: Configures additional widget features.
Default: false
Details: If an object is provided, the following properties are available:
sizesLookup
(Boolean): Enables size lookup.brandsLookup
(Boolean): Enables brand lookup.vehiclesLookup
(Boolean): Enables vehicle lookup.redirectUrl
(String): URL to redirect the user after specific interactions.styles
(String): CSS code for additional customization.
Examples:
Enable the widget:
Customize the widget:
Complete Example Configuration
Each domain where the visualizer is embedded must be whitelisted in the settings of the API key used for the visualizer in the portal.
Implementation example:
2. Google Analytics
Visualizer stats are tracked with Google Analytics. You can request access from AutoSync staff.
How to use your own Google Analytics dashboard
You may provide us with your own Measurement ID through the portal following the steps below.
Click on API in the sidebar menu
Open your key configuration page
Go to the section Visualizer Configuration
Paste you Measurement ID into the field labeled “Measurement ID”
User properties
Visualizer configuration, set in the portal under Visualizer Configuration section, is tracked with Google Analytics (under user_properties
). This is mainly to know which settings are the most popular to improve our services for our customers.
Properties:
visualizer_key
– the key provided to our customers to use the visualizer.visualizer_ga4_key
– the key provided by our customers to user their own Google Analytics dashboard.custom_logo
– a configuration for the visualizer, this means if our customers are using a logo on the visualizer.custom_background_image
– a configuration for the visualizer, this means if our customers are using a background image on the visualizer.thumbnails_mono
– a configuration for the visualizer, this means if our customers are using thumbnails with monochromatic colors.scroll_into_view
– a configuration to align the visualizer to the top of the page when user is using it.align_home_page_to_top
– a configuration for the visualizer, this means if our customers likes a home page with the content centered or aligned to the top.listing_vehicles_by_year
– a configuration for the visualizer, this means if our customers wants to see on each make's page all the vehicles at the same time or separated by year (Different pages)pagination_size
– a configuration for the visualizer, this means if our customers wants to show more or less items per page for products.utm_source
– a property that means from where is using the user the visualizer. If is using our stage page Stage page you will see the value “AutoSync Stage” in other case you will see a domain name.
Events
AutoSync Visualizer has a complete event tracking configuration, here is the list of events configured.
Event name | Attributes | Description | Where |
---|---|---|---|
|
| Visited pages.
|
ALL PAGES |
|
| With this event we can know what are the users searching.
| HOME PAGE
|
| For vehicles:
For products:
For makes:
Form brands:
| When an user found a vehicle or a product through the search tool. Each kind of selection has their own attibutes.
| HOME PAGE
|
|
| Looks for each make selection on vehicle’s makes page.
| VEHICLE’S MAKE PAGE
|
|
| Looks for each brand selection on product’s brands page.
| TIRE’S BRAND PAGE
|
|
| Looks for each brand selection on product’s brands page.
| WHEEL’S BRAND PAGE
|
|
| This events is telling us which vehicles are loaded on the “Builder” or page for visualization.
| BUILDER PAGE
|
|
| What colors are popular for each kind of vehicle, etc… In this way we can help to get accessories or wheels with popular colors.
| BUILDER PAGE Hit on this button And select a color
|
|
| To know what wheels are popular.
| BUILDER PAGE Select a wheel, if card has a border then is selected (Only manual selections are tracked) |
|
| This event is to track the interest to see better the products. This is for internal use, we can know whick view is more popular and do improvements on the UI and UX | BUILDER PAGE Hit on ‘Wheels’ button on the gray navegation bar.
Will be switched to wheel view. |
|
| To know preferred products visual filters and sizes.
| BUILDER PAGE Filter products list by color, size, brand, etc…
|
|
| With this you can collect the data from the request for quotes and see popular stores, locations, products and vehicles.
| BUILDER PAGE (WHEEL VIEW) Sent a request for quote after fill all the information required.
|
|
| This event is for internal uses. We use it to track UI and UX | BUILDER PAGE (WHEEL VIEW) Hit ‘Request for Quote’ button.
|
|
| This works to know which location users are looking for.
| BUILDER PAGE (WHEEL VIEW)
|
|
| This event is to track the interest to know more about products.
| BUILDER PAGE (WHEEL VIEW) On wheel view hit on ‘Specifications’ button to see all the wheel information.
|
|
| This helps to know wich vehicle and products configurations are getting shared.
| BUILDER PAGE Hit on some of the ‘Share’ buttons.
|
AutoSync © 2019-2021 All Rights Reserved