{
    "version" : "https://jsonfeed.org/version/1",
    "content" : "news",
    "type" : "single",
    "title" : "Additional Data Options With DAP |Digital.gov",
    "description": "Additional Data Options With DAP",
    "home_page_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/","feed_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2016/04/05/additional-data-options-with-dap/index.json","item" : [
    {"title" :"Additional Data Options With DAP","summary" : "Agencies can participate in the Digital Analytics Program (DAP) by implementing the DAP script block. It’s a simple line of of code that enables you to take advantage DAP.","date" : "2016-04-05T10:00:38-04:00","date_modified" : "2025-01-27T19:42:55-05:00","authors" : {"ilee" : "Immanuel Lee"},"topics" : {
        
            "analytics" : "Analytics",
            "open-data" : "Open data",
            "software-engineering" : "Software engineering"
            },"branch" : "bc-archive-content-3",
      "filename" :"2016-04-05-additional-data-options-with-dap.md",
      
      "filepath" :"news/2016/04/2016-04-05-additional-data-options-with-dap.md",
      "filepathURL" :"https://github.com/GSA/digitalgov.gov/blob/bc-archive-content-3/content/news/2016/04/2016-04-05-additional-data-options-with-dap.md",
      "editpathURL" :"https://github.com/GSA/digitalgov.gov/edit/bc-archive-content-3/content/news/2016/04/2016-04-05-additional-data-options-with-dap.md","slug" : "additional-data-options-with-dap","url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2016/04/05/additional-data-options-with-dap/","content" :"\u003cp\u003eAgencies can participate in the Digital Analytics Program (DAP) by implementing the DAP script block. It’s a simple line of of code that enables you to take advantage DAP:\u003c/p\u003e\n\u003cp\u003e(Example)\u003c/p\u003e\n\u003cdiv class=\"image\"\u003e\n   \u003cimg\n     src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2016/04/600-x-400-switched-wide-Tablet-Screen-with-Pie-Chart-against-of-the-Report-robuart-iStock-Thinkstock-479377480.jpg\"\n     alt=\"A colorful illustration in the flat design style showing the relation between code and analytics.\"/\u003e\u003c/div\u003e\n \n\n\u003cp\u003eYou can use this line to enhance the Web analytics solution with additional query string parameters. The query string parameters pass data that enable features within the code. They can also help configure settings in the code. It allows you to leverage more features in DAP or extract more data out of DAP. In the example above, we have the query string parameters “agency” and “subagency” that pass data into DAP for reporting purposes.\u003c/p\u003e\n\u003cp\u003eLet’s go through some useful options.\u003c/p\u003e\n\u003ch2 id=\"central-hosting\"\u003eCentral Hosting\u003c/h2\u003e\n\u003cp\u003eOur recommended implementation is to call the DAP code from a central location hosted by DAP. This allows you to implement the code once without having to worry about updating it manually for new versions.\u003c/p\u003e\n\u003cp\u003eInstead of setting the “src” attribute to a local directory, set the value to the centrally hosted URL as follows:\u003c/p\u003e\n\u003cp\u003esrc=”\u003cstrong\u003e\u003ca href=\"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\"\u003ehttps://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u003c/a\u003e\u003c/strong\u003e“\u003c/p\u003e\n\u003cp\u003eRemember, the script block won’t work properly unless \u003cem\u003esrc\u003c/em\u003e is specified with https://. The central host URL has been configured to only be called securely over SSL.\u003c/p\u003e\n\u003cp\u003eWhen DAP updates the code file, the new version will take effect immediately. If we update the code to include any bug fixes or additional features, you’ll see those updates automatically without revisiting the script block code.\u003c/p\u003e\n\u003ch2 id=\"parallel-tracking\"\u003eParallel Tracking\u003c/h2\u003e\n\u003cp\u003eIf you have your own additional implementation of Google Analytics (GA), you may have a bit more flexibility in configuring the settings. However, you may be missing some of the features in DAP: for example, download tracking. You might want to consider running the two analytics codes simultaneously. Parallel tracking allows the DAP code to send DAP data to your separate account of GA.\u003c/p\u003e\n\u003cp\u003eThis differs from a completely independent GA account in that the only GA code needed is the DAP code, which will collect data and send it to both accounts. A completely independent account means that you run both the DAP code and the out-of-the-box GA code, in which both will collect data mutually exclusively.\u003c/p\u003e\n\u003cp\u003eWhile DAP is a great Web analytics solution on its own, you can still take advantage of running your own GA account in parallel by adding the PUA parameter to the source file location:\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;subagency=FEMA\u0026amp;\"\u003ehttps://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;subagency=FEMA\u0026amp;\u003c/a\u003e\u003cstrong\u003epua=UA-000000-0\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003ewhere UA-000000-0 would be replaced with your own UA ID.\u003c/p\u003e\n\u003cp\u003eNow, you can create and track your own Goals and configure other administrative settings to your own account while receiving data from DAP.\u003c/p\u003e\n\u003ch2 id=\"download-extensions\"\u003eDownload Extensions\u003c/h2\u003e\n\u003cp\u003eThe DAP code will allow you to track a number of download extensions by default. You may have unconventional extensions that may not be included in our list. If you look at the \u003ca href=\"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js\"\u003eDAP code\u003c/a\u003e and search for “EXTS”, the first instance of “EXTS” is followed by the list of extensions that are tracked in DAP by default.\u003c/p\u003e\n\u003cp\u003eIf you don’t find your extension in that list, you can add your own with “exts” parameter:\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;exts=mp3\"\u003ehttps://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;\u003cstrong\u003eexts=f90\u003c/strong\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eDAP will now help you track downloads with “f90” extensions.\u003c/p\u003e\n\u003ch2 id=\"demographics\"\u003eDemographics\u003c/h2\u003e\n\u003cp\u003eYou might interested in the demographics of your website users. Remember, DAP doesn’t collect any PII, but DAP does use data that Google collects based on Google profiles and users’ browsing habits across the Web (apart from DAP), either from surveys or ads that they serve.\u003c/p\u003e\n\u003cp\u003eAdd a “dclink” parameter and set the value to true:\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;\"\u003ehttps://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DHS\u0026amp;\u003c/a\u003e\u003cstrong\u003edclink=true\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eYou can find the demographic data in the Audience section of GA and discover the characteristics of your users.\u003c/p\u003e\n\u003cp\u003eOther potential options you can enable or change with querystring parameters in the DAP script tag include:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eCookie expiration time period (to determine new vs. returning users)\u003c/li\u003e\n\u003cli\u003eAdding search parameters (for internal search queries)\u003c/li\u003e\n\u003cli\u003eEmbedded Youtube video metrics tracking\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eYou don’t need to be a code junkie to enable tracking of these additional features. You can take a look at the \u003ca href=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2014/05/QuickGuide-Sept-2015.pdf\"\u003eimplementation guide\u003c/a\u003e (PDF, 239 KB, 7 pages) for other parameters that you might want to add. If you’re interested in implementing DAP for your website, the guide provides instructions as well. For more information or if you have questions while implementing, \u003ca href=\"mailto:dap@support.digitalgov.gov\"\u003econtact us\u003c/a\u003e!\u003c/p\u003e\n"}
  ]
}
