This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* eventsAtPurchaseStart: events to start timer | |
* eventsToTimeAfterPurchaseStart: events to measure duration since timer start | |
* eventsAtPurchaseComplete: events to stop timer | |
*/ | |
var eventsAtPurchaseStart = [ | |
'scOpen', | |
'event1', | |
'event2', | |
'event3', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s.registerPostTrackCallback(function(requestUrl, s) { | |
_satellite.logger.warn('s.registerPostTrackCallback() called'); | |
// unset variables and events that are not needed after sending a beacon | |
// BUT LEAVE BEHIND variables that should remain, e.g. those that are set in the Adobe Analytics extension itself | |
var doNotUnsetVariables = [ | |
'pagename', // page name | |
'hier1', // page hierarchy 1 | |
'server', // site server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Detects video playback events in the Brightcove player and | |
* send a CustomEvent for each of them. | |
* | |
* @author yuhui | |
* @version 1.0.0 | |
* | |
* @see https://player.support.brightcove.com/coding-topics/overview-player-api.html | |
* Brightcove Player development overview | |
* @see https://docs.brightcove.com/brightcove-player/current-release/Player.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Detects video playback events in the Brightcove player and | |
* post a message for each of them. | |
* | |
* @author yuhui | |
* @version 1.0.0 | |
* | |
* @see https://player.support.brightcove.com/coding-topics/overview-player-api.html | |
* Brightcove Player development overview | |
* @see https://docs.brightcove.com/brightcove-player/current-release/Player.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Track Brightcove media playback using Adobe Launch's Media-related rules. | |
* | |
* Brightcove documentation: | |
* - Player events: https://support.brightcove.com/player-events | |
* - Player metadata: https://support.brightcove.com/player-metadata-bcinfo | |
* - Video metadata: https://support.brightcove.com/video-metadata-mediainfo | |
* | |
* Brightcove Player API documentation: | |
* - Current release: https://docs.brightcove.com/brightcove-player/current-release/index.html |
As of v1.0.0 installed from Homebrew, slimerjs
is compatible with Firefox up to version 59.0 only.
These are the instructions for macOS:
- Download Firefox v59.0.3 disk image.
- Open the disk image.
- Drag the "Firefox" app to a folder except the Applications folder.
- Rename Firefox to "Firefox 59.0.3".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# source NVM | |
. ~/.nvm/nvm.sh | |
echo "$ nvm install node" | |
nvm install node | |
echo "$ nvm cache clear" | |
nvm cache clear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "$ pip install --upgrade setuptools" | |
pip install --upgrade setuptools | |
echo "$ pip install --upgrade pip" | |
pip install --upgrade pip | |
echo "$ pip install --upgrade virtualenv" | |
pip install --upgrade virtualenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "$ brew analytics off" | |
brew analytics off | |
echo "$ brew update" | |
brew update | |
echo "$ brew upgrade" | |
brew upgrade |