JavaScript: The Execution Order of DOMContentLoaded and Load (window & document)

DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading Load event is fired when page finished loading or loaded completely. According to Parsing HTML documents – The end, The browser parses the HTML source and runs deferred scripts. A […]

Continue reading


JavaScript: Unshift vs Push

Use unshift. It’s like push, except it adds elements to the beginning of the array instead of the end. unshift/push – Add an element to the beginning/end of an array shift/pop – Remove and return the first/last element of and array A simple diagram as below:

and chart:

Check out the MDN Array […]

Continue reading


Basic Git commands

Git task Notes Git commands Tell Git who you are Configure the author name and email address to be used with your commits. Note that Git strips some characters (for example trailing periods) from user.name.

Create a new local repository  

Check out a repository Create a working copy of a local repository: […]

Continue reading


Using the amp-analytics tag with the adobeanalytics_nativeConfig template

The adobeanalytics_nativeConfig tag is easier to implement, as it will use the same tagging methodology you use on your normal web pages. To accomplish this, add the following to your amp-analytics tag:

This approach sends data to a utility web page via special query string parameters added to the iframeMessage request parameter. In this […]

Continue reading


Implement Adobe Analytics in Accelerated Mobile Pages (AMP) – Overview

AMP (Accelerated Mobile Pages) is an open source project that lets you build web pages for static content that renders quickly. This feature is ideal for publishers who want to create mobile-optimized content once, and have it load instantly everywhere To implement analytics tracking, we can utility amp-analytics element tag for capturing analytics data from […]

Continue reading


Sample Implementation Code for Adobe Analytics Activity Map Combined with AppMeasurement

Activity Map is an Adobe Analytics application that is designed to rank link activity using visual overlays and provide a dashboard of real-time analytics to monitor audience engagement of your web pages. It lets you set up different views to visually identify the acceleration of customer activity, quantify marketing initiatives, and act on audience needs […]

Continue reading


Adobe SiteCatalyst Variables and Query String Parameters

In Adobe SiteCatalyst, query string parameters are used instead of variable names. The following table is a comprehensive list showing all query string parameters with their associated variable and explanation in alphabetical order: Parameter SiteCatalyst Variable Report(s) Populated Description AQB None None Indicates the beginning of an image request. AQE None None Indicates the end […]

Continue reading


JavaScript Query String Getting and Parsing to Object with Regular Expression

What is Query String Query string is the part of a uniform resource locator (URL) containing data that does not fit conveniently into a hierarchical path structure. It commonly includes fields (requested pairs of key and value) added to a base URI by a Web browser or other client application, for example

The first […]

Continue reading