{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/5429","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/5429/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/5429/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/5429/events","html_url":"https://github.com/mautic/mautic/pull/5429","id":280923309,"node_id":"MDExOlB1bGxSZXF1ZXN0MTU3NDk3MTU5","number":5429,"title":"Campaign decision: Focus Item view","user":{"login":"kuzmany","id":462477,"node_id":"MDQ6VXNlcjQ2MjQ3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/462477?v=4","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":[{"id":154414465,"node_id":"MDU6TGFiZWwxNTQ0MTQ0NjU=","url":"https://api.github.com/repos/mautic/mautic/labels/Feature%20Request","name":"Feature Request","color":"1d76db","default":false},{"id":198196353,"node_id":"MDU6TGFiZWwxOTgxOTYzNTM=","url":"https://api.github.com/repos/mautic/mautic/labels/Pending%20Feedback","name":"Pending Feedback","color":"fad8c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-12-11T07:51:46Z","updated_at":"2018-07-26T06:43:46Z","closed_at":"2018-07-26T06:43:46Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/5429","html_url":"https://github.com/mautic/mautic/pull/5429","diff_url":"https://github.com/mautic/mautic/pull/5429.diff","patch_url":"https://github.com/mautic/mautic/pull/5429.patch"},"body":"[//]: # ( Please answer the following questions: )\r\n\r\n| Q  | A\r\n| --- | ---\r\n| Bug fix? | \r\n| New feature? | y\r\n| Automated tests included? |\r\n| Related user documentation PR URL | https://github.com/mautic/documentation/pull/243\r\n| Related developer documentation PR URL | \r\n| Issues addressed (#s or URLs) | \r\n| BC breaks? | \r\n| Deprecations? | \r\n\r\n[//]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )\r\n\r\n[//]: # ( Required: )\r\n#### Description:\r\nNew decision make Focus Item more sweat.\r\nCurrent campaign action https://github.com/mautic/mautic/pull/4666 just insert js code to website. \r\nDecision fire JS code with every page hit, but is executed as true just if  Focus Item is opened (view pixel event). \r\n\r\nUse case:\r\nCampaign will insert exit popup everytime until  popup  will fired.\r\n\r\n![image](https://user-images.githubusercontent.com/462477/33911065-52203436-df91-11e7-84f4-81dc3e4c302f.png)\r\n\r\n#### Steps to test this PR:\r\n1.  Create Focus Item - exit popup\r\n2.  Then create campaign with decision - Focus Item show and add action Modify tags after the decision\r\n3: Go to page with tracking code and open developer tools (firebug..)\r\nYou should see focus item loaded in DOM\r\n![image](https://user-images.githubusercontent.com/462477/33911282-29529c96-df92-11e7-8658-982c4506f761.png)\r\n4. Go to Campaign and see if Modify tags wasn't executed\r\n5. Then come back to tracking page and go to exit from page. \r\n6. Popup should be triggered\r\n7. Go to campaign and see if Modify tags action was executed \r\n8. Repeat tests with Limit to URLS option"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/407993766","html_url":"https://github.com/mautic/mautic/pull/5429#issuecomment-407993766","issue_url":"https://api.github.com/repos/mautic/mautic/issues/5429","id":407993766,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzk5Mzc2Ng==","user":{"login":"kuzmany","id":462477,"node_id":"MDQ6VXNlcjQ2MjQ3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/462477?v=4","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},"created_at":"2018-07-26T06:43:46Z","updated_at":"2018-07-26T06:43:46Z","author_association":"CONTRIBUTOR","body":"Closed"}}
{"actor":{"display_login":"kuzmany"}}