Skip to content

Instantly share code, notes, and snippets.

@markoo
Created November 27, 2015 13:30
Show Gist options
  • Save markoo/4a8d4ce7f584cc64b09f to your computer and use it in GitHub Desktop.
Save markoo/4a8d4ce7f584cc64b09f to your computer and use it in GitHub Desktop.
This doesn't work:
https://www.bluetradingfloor.sys.dom/publications/outrageous-predictions
{
name: 'WebDownloads:ios:tradingfloor',
trigger: [
{
engine: 'sc',
command: 'trackLink',
arguments: [
{
type: 'o',
linkName: 'Download Link',
setVars: {
eVar20: 'app:tradingfloor:ios'
},
addEvent: [
'event9'
]
}
]
}
],
selector: 'a[href*="id680541174"]',
event: 'click',
bubbleFireIfParent: !0,
bubbleFireIfChildFired: !0,
bubbleStop: !1
}
<a
href="https://itunes.apple.com/us/app/id680541174?mt=8"
data-track-label="AppleAppstore"
data-track-action="OutrageousPredictions2015"
data-track-category="publications www all"
class="AppStore small button js-track"
></a>
This works!
http://www.saxobank.com/saxotrader-go
{
name: 'WebDownloads:ios:saxotradergo-saxo-bank',
trigger: [
{
engine: 'sc',
command: 'trackLink',
arguments: [
{
type: 'o',
linkName: 'Download Link',
setVars: {
eVar20: 'app:saxotrader:ios:saxo:bank'
},
addEvent: [
'event9'
]
}
]
}
],
selector: 'a[href*="id406970077"]',
event: 'click',
bubbleFireIfParent: !0,
bubbleFireIfChildFired: !0,
bubbleStop: !1
}
<a
target="_blank"
href="https://itunes.apple.com/app/saxotradergo/id406970077?mt=8">
<img alt="" src="/Style%20Library/Introducing-Saxotradergo/images/app_store.png" class="app_store"
></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment