Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Analytics & Infolinks

Featured Replies

It's Monday and Murphy's first law of web design* has me scratching my head with a problem on the wife's blog.

*a client will always ask you to do something you have never done before

 

Q: How the hell do you piggyback analytics onto inline ads injected by javascript like Infolinks?

 

I know that's an ugly bit of jQuery below, but it works up to point and will detect events inside a set of hard coded tags on a page

but it will not work with the dynamically inserted span tags of the inline adverts. Can't quite figure out if it's me getting the jQuery

screwed up or I'm going about it wrong entirely. The latter being more likely with only three cups of coffee so far today.

 

$("[id^=IL_AD]").click(function (event) {
 id=event.target.id;
 txt=document.getElementById(aid).innerHTML;
loadXMLDoc(txt, id);

 

loadXMLDoc() is an ajax routine that passes the word assigned the the advert up to the server where IP, UserAgent etc can be logged

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.