{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/3106","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/3106/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/3106/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/3106/events","html_url":"https://github.com/mautic/mautic/issues/3106","id":195778616,"number":3106,"title":"Google Analytics support for emails","user":{"login":"kuzmany","id":462477,"avatar_url":"https://avatars.githubusercontent.com/u/462477?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzmany","html_url":"https://github.com/kuzmany","followers_url":"https://api.github.com/users/kuzmany/followers","following_url":"https://api.github.com/users/kuzmany/following{/other_user}","gists_url":"https://api.github.com/users/kuzmany/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzmany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzmany/subscriptions","organizations_url":"https://api.github.com/users/kuzmany/orgs","repos_url":"https://api.github.com/users/kuzmany/repos","events_url":"https://api.github.com/users/kuzmany/events{/privacy}","received_events_url":"https://api.github.com/users/kuzmany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T11:12:19Z","updated_at":"2016-12-15T14:58:35Z","closed_at":null,"body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | n\r\n| Feature request? | y\r\n| Enhancement? | n\r\n\r\n## Description:\r\nGoogle Analytics for emails means add utm_source, utm_medium, utm_camapign emails.\r\nThe easiest way is add these parameters to links just for emails to redirectAction\r\n\r\nhttps://github.com/mautic/mautic/blob/cd0b1cf466b1e0fee240f779cd83bf12545ee207/app/bundles/PageBundle/Controller/PublicController.php\r\n\r\nTo Configurations > Emails we should add  new fields for default values \r\n\r\n- utm_source = mautic\r\n- utm_medium= email\r\n- utm_campaign = category or name or alias of the email\r\n- utm_content = name or alias of the email\r\n"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/267347852","html_url":"https://github.com/mautic/mautic/issues/3106#issuecomment-267347852","issue_url":"https://api.github.com/repos/mautic/mautic/issues/3106","id":267347852,"user":{"login":"alanhartless","id":63312,"avatar_url":"https://avatars.githubusercontent.com/u/63312?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhartless","html_url":"https://github.com/alanhartless","followers_url":"https://api.github.com/users/alanhartless/followers","following_url":"https://api.github.com/users/alanhartless/following{/other_user}","gists_url":"https://api.github.com/users/alanhartless/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhartless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhartless/subscriptions","organizations_url":"https://api.github.com/users/alanhartless/orgs","repos_url":"https://api.github.com/users/alanhartless/repos","events_url":"https://api.github.com/users/alanhartless/events{/privacy}","received_events_url":"https://api.github.com/users/alanhartless/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T14:58:35Z","updated_at":"2016-12-15T14:58:35Z","body":"I like the idea of this but I'm not sold on the global configuration idea. Each email will serve a different purpose and I'm betting that many will want the utm_campaign to be the name of the campaign the email is sent from.\r\n\r\nSo thoughts on this - instead of a global configuration; what if we add it to a section on the email's advanced tab? We'll need an array type utmTags (be sure the column is utm_tags) added to the email entity (with a migration for upgrades). You can still have a default section in the global configuration if you want but we'll need the ability to override per email to make this feature useful I think.\r\n\r\nThen you'll want to update these two methods to accept a new parameter of array query params to append to the redirect URL. https://github.com/mautic/mautic/blob/afb4da4491ac2f12e8500d504906bd20f8ff47ee/app/bundles/EmailBundle/EventListener/BuilderSubscriber.php#L258\r\nhttps://github.com/mautic/mautic/blob/afb4da4491ac2f12e8500d504906bd20f8ff47ee/app/bundles/EmailBundle/EventListener/BuilderSubscriber.php#L260\r\n\r\nThoughts?"}}
{"actor":{"display_login":"alanhartless"}}