JavaScript: Convert NodeList to Array

NodeLists are very similar to Array collections of elements, often referred to as “array-like”, but don’t feature many of the methods provided by the true Array, like forEach, map, filter, etc. JavaScript does, The result of converting NodeList to Array below is a true Array object containing all of the nodes returned 1. Array.prototype.slice.call

[…]

Continue reading


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


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 amp-analytics tag with 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