for Event tracking, GTM has been configured and used in the application. GTM tracks event
correctly and displays the correct result in Google Analytics when using Firefox browser however its not detecting/tracking the events when switch to chrome browser.
Note: The Application is within the I-frame for event tracking.
Related
How do I disable pop ups like this to appear in chrome. (or directly in chromedriver)
Example: Spotify wanting to open App. Making site unaccessable, until selection is made.
Notification
i had took a look to another threads about chrome and custom protocol apps, but i couldn't resolve a doubt i've got. In my web app, when you click a button it fire a new tab with an webpage (window.open(url, "_blank")). The new tab is opened with the url (annother web app with https protocol). This url fire a javascript function on load that verifies some things and then generate a custom url, for example myurl://base64code, and put it in an existing iframe in this way windows.frames['myframe'].location.href=theCustomProtocolUrl. i tried in different ways (location.replace, create a new iframe and set the url, etc) and i always have the same problem. If i refresh (ctrl f5) the page it always show the dialog or if i open the link with the developer console opened. But if i click my button and the page is opened in a new tab it doesn't work only if i refresh (ctrl+f5). This works perfectly on IE11, it launch the app directly.
Any ideas why chrome, and edge, works like this?
UPDATE: I have found the reason, is i use the protocolcheck.js (https://gist.github.com/vladimirtsyupko/cfcd332476b16683bb0b) library.
First i tried to open a protocol with the timeoutHack (it use blur event) and then, after failing, it fires the other url (in this case https) and the dialog doensn't appear. I found a bug with blur event on chrome > 85 https://bugs.chromium.org/p/chromium/issues/detail?id=1137801
Thanks in advance
Is it possible to create a Google Chrome desktop application that runs only as a process in the background which the user cannot directly interact with?
My idea is to create a Chrome browser extension that the user interacts with and that will, via message passing, send data to a Chrome desktop app to operate on before sending it back to the browser extension. I want the operations of the desktop app to be completely invisible to the user.
Is this possible?
Yes, you can simply ignore the onLaunched event, or create a hidden window:
chrome.app.window.create("main.html", { hidden: true })
you can hide the window on app start with chrome.app.window.current().hide()
Trying to make an extension to capture and store chrome HAR.
Intent: extension has a popup html page with start and stop buttons. Capture all network requests of the current tab between clicking of start and stop button.
Problem: since chrome.devtools.* are only available to devtools_page, how am I supposed to send event (clicking of buttons) from popup page to the devtools page.
Read that the background page is responsible for communication between several parts of the extension. Not able to understand how that can be used here.
I need to be able to monitor navigation events (such as page loads or switching between active tabs) in browsers running on a Windows PC. So far, I can get this to work in IE and Firefox by loading a DLL into all running apps via a call to SetWindowsHookEx, then asking for either the IHTMLDocument2 (in IE) or nsIWebProgress (in Firefox) interface from the application. I can use the appropriate interface to request a callback from the application when an event of interest happens.
Is there a way to do this in Chrome? I have read a little about Chrome extensions, but I have not found any documentation on an API exposed by Chrome that is analogous to COM in IE or XPCOM in Firefox. Will a similar approach work or will I need to do something completely different? (I am working in C++.)
I would appreciate it if someone could at least point me in the right direction.
Thanks.
With Chrome extensions API you can register some events handlers for changing state of tab like when document state is changed (loading or loaded), when new tab is added/removed from window or when user switch between tabs.
More about tabs events You find on http://code.google.com/chrome/extensions/tabs.html#event-onActiveChanged