Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 614 Bytes

File metadata and controls

26 lines (17 loc) · 614 Bytes

ReturnoftheCustomTask

LogRequestToConsole Task

This task will print the current request state to the console. Useful for debugging pourposes.

Parameters

This task doesn't accept any parameters.

Usage

You can grab the code for this task from dist/tasks/ folder

var logRequestsToConsoleTask = () => {...}

Then we pass it back as a task.

var GA4CustomTaskInstance = new GA4CustomTask({
 allowedMeasurementIds: ["G-DEBUGEMALL"],
 tasks: [
  logRequestsToConsoleTask
 ]
});