(global, data)
| 7 | * @param {!Object} data |
| 8 | */ |
| 9 | export function firstimpression(global, data) { |
| 10 | validateData(data, ['zoneId', 'websiteId']); |
| 11 | |
| 12 | const {hash, search} = global.context.location; |
| 13 | const parameters = Object.assign( |
| 14 | parseQueryString(hash), |
| 15 | parseQueryString(search) |
| 16 | ); |
| 17 | |
| 18 | const cdnHost = |
| 19 | 'https://' + (parameters['fi_ecdnhost'] || 'ecdn.firstimpression.io'); |
| 20 | |
| 21 | const cdnpath = parameters['fi_ecdnpath'] || '/static/js/fiamp.js'; |
| 22 | |
| 23 | global.params = data; |
| 24 | |
| 25 | writeScript(global, cdnHost + cdnpath); |
| 26 | } |
nothing calls this directly
no test coverage detected