MainApps AudiNet

Include monitoring script

Insert following snippet of code as is to the head of your page

<script>
    (function (a, u, d, i, n, e, t) {
        a['MainAppsAudiNet'] = n; a[n] = a[n] || function () {
                (a[n].qu=a[n].qu || []).push(arguments)
            }, a[n].ti = 1 * new Date(), a[n].us = {}, a[n].ua = {}, a[n].ip = {};
        e = u.createElement(d),t = u.getElementsByTagName(d)[0];
        e.async = 1;e.src = i;t.parentNode.insertBefore(e, t);
    })(window, document, 'script', 'https://analytics.mainapps.com/connect/audinet.min.js', 'maa');
</script>

Authenticate script

Ask us for a valid token (trackerID) then call following method of our data layer once at the beginning

maa('auth', trackerID, options);

The options is just an optional object which can contain one or all the values ​​as shown below in the example

{
    logLevel: 0,
    sessionMinutes: 60,
    googleOneTap: false,
    googleOneTapAuto: false,
    googOneTapSelectorID: 'exampleID',
    googleOneTapEventID: null
}

// logLevel one of following. 0 => disabled, 1 => only errors, 2 => all events, 3 => verbose, 4 => debug. Default: 0
// sessionMinutes duration in minutes of each session. Default: 60
// googleOneTap true or false, enable Google One Tap authentication with which you can register and associate to the events the visitors name, surname, email, picture and Google ID. Default: false
// googleOneTapAuto true or false, enables Google One Tap auto authentication, if possible and if the googleOneTap property is true. Default: false
// googOneTapSelectorID the ID of the DOM element where the script will inject the login element if the googleOneTap property is true. (eg. <div id="exampleID"></div>). By default inherits heigth of his container with 40px max-heigth and has absolute position in top 0, right 0
// googleOneTapEventID specific event to trigger Google One Tap box request. If omitted and if the googleOneTap property is true, it is triggered on auth event. Default: null

Call event monitor

Use this method to track as many events as you want

maa('event', actionID, objectTypeID, objectID, param1, param2);

All event method params are optional, please refer to the tables below for a correct use of the actionID and objectTypeID values. ObjectID may be the unique ID of the element you are tracking, param1 and param2 are generic purpose fields where you can register what you want


Register customer (optional)

Optionally you can register a CustomerID which will be sent automatically at each call to the same session event method. This can be useful for associating an event to a specific customer in your database. When session lasts you should re-register customer event.

maa('customer', customerID);

Check if function exists (optional)

Optionally you can check if function exists before call its methods. If you are using a script load blocker, such as cookie consent, you should check the existance of function before using it, insted to do that in explicit way by checking if it is defined ( eg. typeof(maa) !== 'undefined') you can use following embedded way to prevent errors.

<script>
    function isf(func) {
        var args = Array.prototype.slice.call(arguments,1);
        if (typeof (window[func]) === 'function') {
            window[func].apply(window, args);
        }
    }
</script>
maa('auth', trackerID, options);
isf('maa', 'auth', trackerID, options);

maa('event', actionID, objectTypeID, objectID, param1, param2);
isf('maa', 'event', actionID, objectTypeID, objectID, param1, param2);

maa('customer', customerID);
isf('maa', 'customer', customerID);

Thanks to the non-specificity of the isf() funtion, you can also use it to check that other than MainApps AudiNet tracking systems are not blocked!


Event tables

Action

IDActionDescriptionStatus
1(not set)Not specified
2 GenericSearch Generic search on the site passing the term searched as a parameter
3 ItRequiresDetailed Requires product / service / category / brand detail sheet
4 ImageInteraction Interaction with product / service / category / brand images
5 SizeSelection Size selection
6 ColorSelection Color Selection
7 ConfigurationSelection Product / service configuration selection deprecated
8 QuantityChange Quantity Selection
9 ProductInCart Product in the cart from the product detail sheet
10 ProductInCartQuick Product in cart from the listing card
11 RemoveFromCart Removes from cart
12 ContinueShopping Continue shopping
13 ConcludeOrder Proceed to purchase
14 PurchasingWithoutRegistration Purchase without registration
15 PurchasingWithRegistration Purchase with registration
16LoginLogin
17 ForgotPassword Forgot password
18 CreateAccount Create account
19 AcceptPrivacyPolicy Acceptance of privacy conditions
20 MyAccountButton Access to the account management area
21 HomePageButton Access to the Home page via logo button
22 MyCartButton Access to the shopping cart
23 WhoWeArePage Access page About us
24 ConditionsOfSalePage Access page Conditions of sale
25 CustomerServicePage Access customer support page
26 PrivacyPolicyPage Access to the Privacy Policy page
27SocialFacebookButtonClick on the Facebook social buttondeprecated
28SocialInstagramButtonClick on the Instagram social buttondeprecated
29SocialGooglePlusButtonClick on the Google Plus social button>deprecated
30SocialPinterestButtonClick on the Pinterest social buttondeprecated
31SocialTwitterButtonClick on the Twitter social buttondeprecated
32Social11ButtonClick on the generic 1 social buttondeprecated
33Social12ButtonClick on the generic 2 social buttondeprecated
34Social13ButtonClick on the generic 3 social buttondeprecated
35Social14ButtonClick on the generic 4 social buttondeprecated
36Social15ButtonClick on the generic 5 social buttondeprecated
37 CustomerDataForward Click on the Next button after entering the customer's personal data deprecated
38 CustomerDataBack Click on the Back button after entering the customer's personal data deprecated
39 ShippingDataForward Click on the Next button after entering the shipping information deprecated
40 ShippingDataBack Click on the Back button after entering the shipping information deprecated
41 MainPayment Pay with MainPayment or PayRider
42 PayPal Pay with PayPal
43 AgreeTermsAndConditions Acceptance Conditions of sale
44 CouponEntry Coupon typing
45 FidelityCardEntry Typing Loyalty Card
46 NewUser New user
47Empty1Generic 1deprecated
48Empty2Generic 2deprecated
49Empty3Generic 3deprecated
50LandingLanding
51Mag_Step1Mag - Welcome Page and Search
52Mag_Step2Mag - Choice of Additional Services
53Mag_Step3Mag - User Form Filling
54Mag_Step4Mag - Reservation Summary and Confirm
55Mag_Step5Mag - Reservation Summary after Booking
56Mag_Step11Mag - Quotation Confirmed
57Mag_StepMag - Not Tracked Step
58Mag_ShowRealDetailsMag - Show Real Details

ObjectType

IDObjectTypeDescriptionStatus
1(not set)Not specified
2ProductProduct
3CategoryCategory
4NoveltyNovelty
5ClearanceClearance
6PromotionsPromotions
7BrandBrand
8ResourceResource

MainApps AudiNet...that's all, simple, useful, effective!