{"action":"created","comment":{"url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/comments/41924184","id":41924184,"diff_hunk":"@@ -0,0 +1,77 @@\n+extends ../../../app/views/overview\n+\n+\n+block meta\n+  - var model       = 'Third Party Implementations'\n+\n+  \n+block description\n+\n+  h3 An Appeal for Analytics\n+  :markdown\n+    NGP VAN makes it easy for your organization to receive contributions through beautifully designed, customizable forms. But better forms are still only half of the battle. If your organization has the capacity, forms should be multivariate (or A/B) tested thoroughly using tools like Optimizely and Google Tag Manager / Google Analytics. While we continuously work on doing the heavy lifing in making your forms automatically function faster and convert at higher rates, your organization should always be testing variations to find opportunities for form conversion improvements.\n+\n+  h4 Ecommerce tracking in Google Tag Manager\n+  :markdown\n+    Google Tag Manager (GTM) is one of the best tools for grouping tags of various types into a unified script that can be executed on pageload. GTM is primarily used to manage Google Analytics (GA) tags. \n+\n+    In ActionTag, we use GTM/GA to track product metrics for our own internal reporting purposes. We have configured GA events to be easy to use for your own organization’s GTM/GA implementation.\n+\n+    We took the time to build in events that are fired on successful form submits for Contribution and Event form types so information can be easily tracked as ECommerce data in your own GTM/GA setup. Google Analytics Ecommerce is designed to mimic a system where items are added to a cart and then the cart is checked out. In the case of regular Online Contributions, this means only a single item will appear in the cart for a transaction. In the case of Online Event Pages, multiple items can appear in the transaction if different ticket types are purchased by the supporter.\n+    \n+    The following code snippet is formatted HTML that is passed into the js dataLayer upon successful client-side transaction completion.\n+    \n+    ````javascript\n+    dataLayer = [{\n+      'transactionId': '19065325', // Online Ref #\n+      'transactionAffiliation': 'People for Good PAC', // Designation Name\n+      'transactionTotal': 2600,  // Transaction Total\n+      'transactionProducts': [{\n+          'category': 'ContributionForm', //Page Type\n+          'sku': '1', // SKU based upon unique session ID combined with the individual product transaction (this value does not remain staticly assigned to the item for future purchases or for purchases by other users, it is unique to the session)\n+          'price': 11.99, // Unit Price (Transaction Amount)\n+          'quantity': 1, // Quantity of item (default to \"1\" if contribution, otherwise number of tickets of a certain type)\n+          'brand': 'People for Good VA' // NGP Tenant (Account) Name\n+          'name': 'General Admission' // Ticket name (if Events page) - If no ticket name, defaults to dollar value of ticket (ex. \"5\")\n+      }]\n+    }];\n+    ````  ","path":"docs/action-tag/thirdpartyimplementations/overview.jade","position":38,"original_position":38,"commit_id":"9f970bbcb2409399c950e2c1b6cc1e046b24b4d7","original_commit_id":"9f970bbcb2409399c950e2c1b6cc1e046b24b4d7","user":{"login":"ryanmoorman","id":5170196,"avatar_url":"https://avatars.githubusercontent.com/u/5170196?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmoorman","html_url":"https://github.com/ryanmoorman","followers_url":"https://api.github.com/users/ryanmoorman/followers","following_url":"https://api.github.com/users/ryanmoorman/following{/other_user}","gists_url":"https://api.github.com/users/ryanmoorman/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmoorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmoorman/subscriptions","organizations_url":"https://api.github.com/users/ryanmoorman/orgs","repos_url":"https://api.github.com/users/ryanmoorman/repos","events_url":"https://api.github.com/users/ryanmoorman/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmoorman/received_events","type":"User","site_admin":false},"body":"1. Thats actually done all inside GTM and there is no snippet that can reflect how this data is passed.\r\n2. I can totally do that by showing it in a format similar to this, but the only thing is that this doesn't really ever appear in this specific format on any page, this is just more of a representative model of the value being passed into the datalayer at different points during the form submit process.\r\n3. Totally","created_at":"2015-10-13T20:58:20Z","updated_at":"2015-10-13T20:58:20Z","html_url":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93#discussion_r41924184","pull_request_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/comments/41924184"},"html":{"href":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93#discussion_r41924184"},"pull_request":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93","id":47557236,"html_url":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93","diff_url":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93.diff","patch_url":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93.patch","issue_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/93","number":93,"state":"open","locked":false,"title":"Actiontag gtm","user":{"login":"ryanmoorman","id":5170196,"avatar_url":"https://avatars.githubusercontent.com/u/5170196?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmoorman","html_url":"https://github.com/ryanmoorman","followers_url":"https://api.github.com/users/ryanmoorman/followers","following_url":"https://api.github.com/users/ryanmoorman/following{/other_user}","gists_url":"https://api.github.com/users/ryanmoorman/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmoorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmoorman/subscriptions","organizations_url":"https://api.github.com/users/ryanmoorman/orgs","repos_url":"https://api.github.com/users/ryanmoorman/repos","events_url":"https://api.github.com/users/ryanmoorman/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmoorman/received_events","type":"User","site_admin":false},"body":"I changed the wording a bit to be more explanatory. The part about events working differently from contributions is only that it lists out items by type if there are multiple ticket types, so I mentioned that and spoke further to things like SKU and how the value is distinct. I also moved GA integration section as well as Optimizely and preSegue to a new section known as \"Third Party Integrations\" and included an appeal to form analytics in the header of the section hopefully to provide some context for our efforts in making ActionTag integrate with third party analytics software.","created_at":"2015-10-13T16:36:28Z","updated_at":"2015-10-13T20:58:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93/commits","review_comments_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93/comments","review_comment_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/93/comments","statuses_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/statuses/9f970bbcb2409399c950e2c1b6cc1e046b24b4d7","head":{"label":"NGPVAN:actiontag-gtm","ref":"actiontag-gtm","sha":"9f970bbcb2409399c950e2c1b6cc1e046b24b4d7","user":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?v=3","gravatar_id":"","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"repo":{"id":20279291,"name":"developers.ngpvan.com","full_name":"NGPVAN/developers.ngpvan.com","owner":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?v=3","gravatar_id":"","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NGPVAN/developers.ngpvan.com","description":"Portal for third party developers","fork":false,"url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com","forks_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/forks","keys_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/teams","hooks_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/hooks","issue_events_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/events{/number}","events_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/events","assignees_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/assignees{/user}","branches_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/branches{/branch}","tags_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/tags","blobs_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/statuses/{sha}","languages_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/languages","stargazers_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/stargazers","contributors_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/contributors","subscribers_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/subscribers","subscription_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/subscription","commits_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/contents/{+path}","compare_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/merges","archive_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/downloads","issues_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues{/number}","pulls_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls{/number}","milestones_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/milestones{/number}","notifications_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/labels{/name}","releases_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/releases{/id}","created_at":"2014-05-29T02:04:42Z","updated_at":"2015-07-23T22:31:02Z","pushed_at":"2015-10-13T20:48:44Z","git_url":"git://github.com/NGPVAN/developers.ngpvan.com.git","ssh_url":"git@github.com:NGPVAN/developers.ngpvan.com.git","clone_url":"https://github.com/NGPVAN/developers.ngpvan.com.git","svn_url":"https://github.com/NGPVAN/developers.ngpvan.com","homepage":"http://developers.ngpvan.com","size":3243,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":2,"default_branch":"master"}},"base":{"label":"NGPVAN:master","ref":"master","sha":"2abf5dc3a384da468a1d995faf4dea3c2e247f95","user":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?v=3","gravatar_id":"","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"repo":{"id":20279291,"name":"developers.ngpvan.com","full_name":"NGPVAN/developers.ngpvan.com","owner":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?v=3","gravatar_id":"","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NGPVAN/developers.ngpvan.com","description":"Portal for third party developers","fork":false,"url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com","forks_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/forks","keys_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/teams","hooks_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/hooks","issue_events_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/events{/number}","events_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/events","assignees_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/assignees{/user}","branches_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/branches{/branch}","tags_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/tags","blobs_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/statuses/{sha}","languages_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/languages","stargazers_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/stargazers","contributors_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/contributors","subscribers_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/subscribers","subscription_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/subscription","commits_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/contents/{+path}","compare_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/merges","archive_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/downloads","issues_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues{/number}","pulls_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls{/number}","milestones_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/milestones{/number}","notifications_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/labels{/name}","releases_url":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/releases{/id}","created_at":"2014-05-29T02:04:42Z","updated_at":"2015-07-23T22:31:02Z","pushed_at":"2015-10-13T20:48:44Z","git_url":"git://github.com/NGPVAN/developers.ngpvan.com.git","ssh_url":"git@github.com:NGPVAN/developers.ngpvan.com.git","clone_url":"https://github.com/NGPVAN/developers.ngpvan.com.git","svn_url":"https://github.com/NGPVAN/developers.ngpvan.com","homepage":"http://developers.ngpvan.com","size":3243,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93"},"html":{"href":"https://github.com/NGPVAN/developers.ngpvan.com/pull/93"},"issue":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/93"},"comments":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/NGPVAN/developers.ngpvan.com/statuses/9f970bbcb2409399c950e2c1b6cc1e046b24b4d7"}}}}