logo

/Code Snippet|v2.3.3

Module

Static Methods

imagePing(url, trackingInfo)imagePing.jsline 35

Request image ping.

PARAMETERS
NameTypeDescription

url

String

url for ping request

trackingInfo

Object

infos for make query string

RETURNS:
{

HTMLElement

}
EXAMPLES
// ES6
import imagePing from 'tui-code-snippet/request/imagePing';

// CommonJS
const imagePing = require('tui-code-snippet/request/imagePing');

imagePing('https://www.google-analytics.com/collect', {
  v: 1,
  t: 'event',
  tid: 'trackingid',
  cid: 'cid',
  dp: 'dp',
  dh: 'dh'
});
Resizable