Integrating Insider Object with Google Tag Manager (GTM)
  • 23 Aug 2023
  • 3 Minutes to read

    Integrating Insider Object with Google Tag Manager (GTM)


      Article Summary

      After you complete Integrating Insider with Google Tag Manager (GTM), you can integrate Insider Object into your website via Google Tag Manager (GTM) easily with the following steps:

      How does it work?

      Insider Object is an object similar to Google's Data Layer, and enables Insider to collect data from your website. Insider generates data directly from Google's Data Layer (except for the Page View event), and populates the Insider Object. Insider templates mirror the data present in the Data Layer into the Insider Object.

      How can you configure Insider Object?

      1. After completing the Insider Tag integration, go to Tags and click the New button.
      97134812-4605-48f9-baa0-bf4a9e7b846c.png

      2. Click Tag Configuration and select Insider on the Choose tag type window.

      036f34da-597f-42e8-b8b6-743bbf98d4fc.png

      After selecting Insider, you will need to set up the following Object Types.

      Object Types for Insider Object

      Object TypeDescriptionTrigger Condition
      Page ViewPage typeSelected page
      BasketDetails of items in cartAll pages
      ListingDetails of items on category pageCategory page
      ProductDetails of a specific itemProduct detail page
      UserAttributes of a logged-in userAll pages

      How can you configure each object type?

      Your title goes here
      Before configuring each object, be informed that you need to set up a firing condition to set up your event type, and set Tag Priority for each of the selected event type.
      • To enable the event to load before the Insider Tag, expand the Advanced Settings.
      • The Tag firing priority should be higher than that of the Insider Tag. If none is specified for any tag, the default priority is 0, so the respective event can be set to 1 as in the example.
      • After setting the priority, click Tag Sequencing and enable "Fire a tag after the event type fires". Then select Insider Tag as the Cleanup Tag.

      02673bfa-e65b-48a0-99c1-091a8cf9c7b9.png

      Your title goes here
      Upon adding the Event type, review to make sure:
      • It loads before the Insider Tag (ins.js).
      • If it is a single page, be sure that the page object includes the correct information. For example, once a user navigates to another page after the Confirmation page, the page object should also state this change and not display the type as Confirmation.

      Page View Event

      Page view information lets Insider understand the page type that the user is browsing.
      9ca54178-f21b-4b9f-98cd-90a751d40937.png

      Page Types and Trigger Conditions

      Insider can recognize 8 different page types when a user is browsing your website. Each page type needs to be separately set up, and the trigger condition needs to be selected as in the table below.

      Page TypeDescriptionTrigger Condition
      HomeHomepageHomepage
      ProductProduct Detail PageProduct Detail Page
      CategoryCategory PageCategory Page
      SearchSearch Results PageSearch Results Page
      BasketCart PageCart Page
      CheckoutCheckout PageCheckout Page
      ConfirmationAfter Payment PageAfter Payment Page
      ContentContent PageContent Page

      Basket/Listing/Product/User Objects

      Each object gets its data directly from the Data Layer. If you have the information that is listed in any event type, make sure that you have set up its path correctly from the Insider Template.

      Object Types for Insider Object

      Object TypeDescriptionTrigger Condition
      BasketDetails of items in cartAll Pages
      ListingDetails of items on category pageCategory Page
      ProductDetails of a specific itemProduct Detail Page
      UserAttributes of a logged-in userAll Pages

      Fields for Object Types

      TransactionUserBasketProductListing
      Basket CurrencyUser Unique IDBasket CurrencyProduct IDProduct ID
      Basket TotalGenderBasket TotalProduct NameProduct Name
      Shipping CostBirthdayShipping CostProduct CategoriesProduct Categories
      Product Parent ObjectHas TransactedProduct Parent ObjectProduct CurrencyProduct Currency
      Product IDTransaction CountProduct IDProduct Unit PriceProduct Unit Price
      Product NameGDPR OptinProduct NameProduct Unit Sale PriceProduct Unit Sale Price
      Product CategoriesFirstnameProduct CategoriesProduct URLProduct URL
      Product CurrencyLastnameProduct CurrencyProduct StockProduct Stock
      Product Unit PriceUsernameProduct Unit PriceProduct ColorProduct Color
      Product Unit Sale PriceEmail AddressProduct Unit Sale PriceProduct SizeProduct Size
      Product URLEmail OptinProduct URLProduct Image URLProduct Image URL
      Product StockPhone NumberProduct StockProduct Custom FieldsProduct Custom Fields
      Product ColorSMS OptinProduct ColorProduct Quantity-
      Product SizeWhatsApp OptinProduct SizeProduct Subtotal-
      Product Image URLLanguage CodeProduct Image URL--
      Product Custom FieldsIs Returning UserProduct Custom Fields--
      Product QuantityContact List IDsProduct Quantity--
      Product Subtotal-Product Subtotal--
      Delivery----
      Bank Name----
      Payment Type----
      Order ID----

      Each field needs to be connected to a path in the Data Layer. If you have this information in your Data Layer, you need to map it to the respective field. If you do not have any information regarding an object field, it cannot be mapped in the Insider Object.
      d54d6b75-011c-4d0f-9c41-59e045aab67b.pngOnce you complete mapping the fields for each object, your integration is completed.


      Was this article helpful?

      ESC

      Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses