setTimeout( function () { if (typeof ga === "undefined") { // Not Google Analytics } else { ga(function (tracker) { // Gets the client ID of the default tracker. var clientId = tracker.get('clientId'); // Gets a reference to the window object of the destionation iframe. var frameWindow = document.getElementById('restaurante-makkila-fernandovi').contentWindow; // Sends the client ID to the window inside the destination frame. frameWindow.postMessage(clientId, '*'); }); } }, 5000);