{"__v":25,"_id":"54c904217a11f60d0022a851","category":{"__v":13,"_id":"547cd7672eaee50800ed108d","pages":["547cd7682eaee50800ed108f","54c8fc417a11f60d0022a83f","54c8fc8b4574700d00f01654","54c903d90174630d00efa894","54c904217a11f60d0022a851","54c904470174630d00efa899","54c9ed8a4574700d00f01869","54c9f27d7a11f60d0022aa82","54d0e25a095c470d00d16420","54d0f835cfd8ce0d007de88a","54d1f61c441be60d00b981cf","54d216df441be60d00b981fe","54f727090585de250064e20d"],"project":"547cd7662eaee50800ed1089","version":"547cd7662eaee50800ed108c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-01T21:02:31.346Z","from_sync":false,"order":0,"slug":"start","title":"Get Started: Mac OS Apps"},"parentDoc":null,"project":"547cd7662eaee50800ed1089","user":"547cd6ac78fd57080023ca99","version":{"__v":9,"_id":"547cd7662eaee50800ed108c","project":"547cd7662eaee50800ed1089","createdAt":"2014-12-01T21:02:30.851Z","releaseDate":"2014-12-01T21:02:30.851Z","categories":["547cd7672eaee50800ed108d","54c8f8ae0174630d00efa874","54c8f8bd7a11f60d0022a832","54c8f8c60174630d00efa876","54c8f8f10174630d00efa877","55155826bc466623002afe83","551558324c7c1e39003735a0","56052058e266000d008971c7","57909a453b845d0e006a37d5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-01-28T15:45:37.374Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":10,"body":"The DevMate Traffic Tracking code collects information about external traffic sources. Why just not to use Google Analytics, you may wonder. Good question, and here's why.\n\nBy using the DevMate Traffic Tracking code you will be able to match the website visits with other vital application metrics like downloads, installs and sales. Our Traffic Tracking code will not interfere with the Google Analytics one, moreover, you can combine them to get finer control, that will be disclosed below.\n\nTo get the code, follow to _Company > Settings > Traffic Tracking._ You need to select the parameters to generate code:\n\n*   _Track both DevMate and Google Analytics parameters _–you will be able to track Google campaigns and sources with DevMate (see [Sales and Downloads](doc:sales-and-downloads)).\n*    _Track only DevMate parameters_–even if you have Google Analytics code installed on the page, its data will not be sent to DevMate.\n\nThen insert the generated code onto every page you'd like to track before the closing `</head>` tag. The same is applied if you are using templates to generate pages.\n\n# Specific Products Tracking\n\nYou may install the code onto the specific product pages. Check the product(s) you want to track and add the code received before `(function() {` in the main part of the code.\n\nFor example, you have all your products listed on your company web page, separate pages for each product and several bundles. For the most precise tracking install the main code on your company web page, particular code for the product on every corresponding page, and select two or more products for your bundles page.\n\nTo check the installation, refresh the page with Traffic code installed and press **Check **on the DevMate _Company > Settings > Traffic & Conversion Tracking _ page. _Collecting data _ tells that code was installed correctly, you'll get _No data received_ message otherwise.\n\n# Campaigns and Sources Tracking\n\nIf you are using Google Analytics to track your marketing campaigns and sources, you can select _DevMate and Google Analytics tracking_ option and you will get the statistics on Google campaigns and sources in DevMate. If you don't use Google Analytics or for some reason don't want to send its data to DevMate, but still want to track campaigns and sources, you need to build DevMate-specific links.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"DevMate Parameter\",\n    \"h-1\": \"Google Analytics Analog\",\n    \"h-2\": \"Description\",\n    \"h-3\": \"Example\",\n    \"0-0\": \"dm_campaign\",\n    \"0-1\": \"utm_campaign\",\n    \"0-2\": \"Determines the name of marketing campaign\",\n    \"0-3\": \"`http://yoursite.com/productpage.html?dm_campaign=yourcampaign`\",\n    \"1-0\": \"dm_source\",\n    \"1-1\": \"utm_source\",\n    \"1-2\": \"Determines the name of traffic source\",\n    \"1-3\": \"`http://yoursite.com/productpage.html?dm_source=yoursource`\",\n    \"2-0\": \"dm_partner\"\n  },\n  \"cols\": 4,\n  \"rows\": 2\n}\n[/block]\nFor example, if you want to track the performance of email newsletter within Christmas marketing campaign, the link should be as follows:\n\n    http://yoursite.com/productpage.html?dm_campaign=christmas&dm_source=email_newsletter1\n\nThe performance of this campaign and source will be displayed in [Sales and Downloads](doc:sales-and-downloads) report.","excerpt":"","slug":"install-traffic-and-conversion-code","type":"basic","title":"Install Traffic Tracking Code"}

Install Traffic Tracking Code


The DevMate Traffic Tracking code collects information about external traffic sources. Why just not to use Google Analytics, you may wonder. Good question, and here's why. By using the DevMate Traffic Tracking code you will be able to match the website visits with other vital application metrics like downloads, installs and sales. Our Traffic Tracking code will not interfere with the Google Analytics one, moreover, you can combine them to get finer control, that will be disclosed below. To get the code, follow to _Company > Settings > Traffic Tracking._ You need to select the parameters to generate code: * _Track both DevMate and Google Analytics parameters _–you will be able to track Google campaigns and sources with DevMate (see [Sales and Downloads](doc:sales-and-downloads)). * _Track only DevMate parameters_–even if you have Google Analytics code installed on the page, its data will not be sent to DevMate. Then insert the generated code onto every page you'd like to track before the closing `</head>` tag. The same is applied if you are using templates to generate pages. # Specific Products Tracking You may install the code onto the specific product pages. Check the product(s) you want to track and add the code received before `(function() {` in the main part of the code. For example, you have all your products listed on your company web page, separate pages for each product and several bundles. For the most precise tracking install the main code on your company web page, particular code for the product on every corresponding page, and select two or more products for your bundles page. To check the installation, refresh the page with Traffic code installed and press **Check **on the DevMate _Company > Settings > Traffic & Conversion Tracking _ page. _Collecting data _ tells that code was installed correctly, you'll get _No data received_ message otherwise. # Campaigns and Sources Tracking If you are using Google Analytics to track your marketing campaigns and sources, you can select _DevMate and Google Analytics tracking_ option and you will get the statistics on Google campaigns and sources in DevMate. If you don't use Google Analytics or for some reason don't want to send its data to DevMate, but still want to track campaigns and sources, you need to build DevMate-specific links. [block:parameters] { "data": { "h-0": "DevMate Parameter", "h-1": "Google Analytics Analog", "h-2": "Description", "h-3": "Example", "0-0": "dm_campaign", "0-1": "utm_campaign", "0-2": "Determines the name of marketing campaign", "0-3": "`http://yoursite.com/productpage.html?dm_campaign=yourcampaign`", "1-0": "dm_source", "1-1": "utm_source", "1-2": "Determines the name of traffic source", "1-3": "`http://yoursite.com/productpage.html?dm_source=yoursource`", "2-0": "dm_partner" }, "cols": 4, "rows": 2 } [/block] For example, if you want to track the performance of email newsletter within Christmas marketing campaign, the link should be as follows: http://yoursite.com/productpage.html?dm_campaign=christmas&dm_source=email_newsletter1 The performance of this campaign and source will be displayed in [Sales and Downloads](doc:sales-and-downloads) report.