{"action":"created","issue":{"url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/14","labels_url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/14/comments","events_url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/14/events","html_url":"https://github.com/cybercog/yii2-google-analytics/pull/14","id":103045102,"number":14,"title":"Allow plugin events to be fired.","user":{"login":"nicomollet","id":108828,"avatar_url":"https://avatars.githubusercontent.com/u/108828?v=3","gravatar_id":"","url":"https://api.github.com/users/nicomollet","html_url":"https://github.com/nicomollet","followers_url":"https://api.github.com/users/nicomollet/followers","following_url":"https://api.github.com/users/nicomollet/following{/other_user}","gists_url":"https://api.github.com/users/nicomollet/gists{/gist_id}","starred_url":"https://api.github.com/users/nicomollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicomollet/subscriptions","organizations_url":"https://api.github.com/users/nicomollet/orgs","repos_url":"https://api.github.com/users/nicomollet/repos","events_url":"https://api.github.com/users/nicomollet/events{/privacy}","received_events_url":"https://api.github.com/users/nicomollet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T15:15:59Z","updated_at":"2015-08-27T12:41:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cybercog/yii2-google-analytics/pulls/14","html_url":"https://github.com/cybercog/yii2-google-analytics/pull/14","diff_url":"https://github.com/cybercog/yii2-google-analytics/pull/14.diff","patch_url":"https://github.com/cybercog/yii2-google-analytics/pull/14.patch"},"body":"Events like:\r\n\r\n```\r\nga('ecommerce:addTransaction', {\r\n  'id': '1234',                     // Transaction ID. Required.\r\n  'affiliation': 'Acme Clothing',   // Affiliation or store name.\r\n  'revenue': '11.99',               // Grand Total.\r\n  'shipping': '5',                  // Shipping.\r\n  'tax': '1.29'                     // Tax.\r\n});\r\n```\r\n\r\nWith the config:\r\n\r\n```\r\n\techo GATracking::widget(\r\n\t\t[\r\n\t\t\t'trackingId'     => Yii::$app->params['analyticsConfig']['accountid'],\r\n\t\t\t'trackingConfig' => [\r\n\t\t\t\t'allowAnchor' => false\r\n\t\t\t],\r\n\t\t\t'omitScriptTag'  => false,\r\n\t\t\t'debug'          => true,\r\n\t\t\t'debugTrace'     => true,\r\n\t\t\t'anonymizeIp'    => false,\r\n\t\t\t'plugins'        => [\r\n\t\t\t\t'ecommerce'           => 'ecommerce.js',\r\n\t\t\t],\r\n\t\t\t'events'        => [\r\n\t\t\t\t'ecommerce:addTransaction' => [\r\n\t\t\t\t\t'id'          => '1234',                     // Transaction ID. Required.\r\n\t\t\t\t\t'affiliation' => 'Acme Clothing',   // Affiliation or store name.\r\n\t\t\t\t\t'revenue'     => '11.99',               // Grand Total.\r\n\t\t\t\t\t'shipping'    => '5',                  // Shipping.\r\n\t\t\t\t\t'tax'         => '1.29'                     // Tax.\r\n\t\t\t\t],\r\n\t\t\t\t'ecommerce:addItem'        => [\r\n\t\t\t\t\t'id'       => '1234',                     // Transaction ID. Required.\r\n\t\t\t\t\t'name'     => 'Fluffy Pink Bunnies',    // Product name. Required.\r\n\t\t\t\t\t'sku'      => 'DD23444',                 // SKU/code.\r\n\t\t\t\t\t'category' => 'Party Toys',         // Category or variation.\r\n\t\t\t\t\t'price'    => '11.99',                 // Unit price.\r\n\t\t\t\t\t'quantity' => '1'                   // Quantity.\r\n\t\t\t\t],\r\n\t\t\t\t'ecommerce:send'           => [ ],\r\n\t\t\t],\r\n\t\t]\r\n\t);\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/comments/135409667","html_url":"https://github.com/cybercog/yii2-google-analytics/pull/14#issuecomment-135409667","issue_url":"https://api.github.com/repos/cybercog/yii2-google-analytics/issues/14","id":135409667,"user":{"login":"a-komarev","id":1849174,"avatar_url":"https://avatars.githubusercontent.com/u/1849174?v=3","gravatar_id":"","url":"https://api.github.com/users/a-komarev","html_url":"https://github.com/a-komarev","followers_url":"https://api.github.com/users/a-komarev/followers","following_url":"https://api.github.com/users/a-komarev/following{/other_user}","gists_url":"https://api.github.com/users/a-komarev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-komarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-komarev/subscriptions","organizations_url":"https://api.github.com/users/a-komarev/orgs","repos_url":"https://api.github.com/users/a-komarev/repos","events_url":"https://api.github.com/users/a-komarev/events{/privacy}","received_events_url":"https://api.github.com/users/a-komarev/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T12:41:07Z","updated_at":"2015-08-27T12:41:07Z","body":"@nicomollet Thanks for participation!\r\n\r\nI've rechecked [documentation](https://developers.google.com/analytics/devguides/collection/analyticsjs/events) and found only another one syntax. Can you provide link to this one please?"}}