Skip to content

Commit f7ac71a

Browse files
authored
Merge pull request #33 from alphagov/PP-3129-adding-click-tracking
PP-3129 adding click tracking
2 parents 663904d + 7a7ff1e commit f7ac71a

16 files changed

Lines changed: 105 additions & 92 deletions

File tree

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
# Ignore .DS_store file
2121
.DS_Store
2222

23-
# Vendored Frontend components
24-
/components
23+
# Ignore node modules
24+
/node_modules
2525

2626
# PaaS authentication file
2727
Staticfile.auth

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.12.2

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Running Locally
44

5-
- `bundle install`
6-
- `bower install`
7-
- `bundle exec middleman server`
8-
- `open http://localhost:4567`
5+
- `bundle install` to install middleman and its dependencies
6+
- `npm install` to install the frontend dependencies
7+
- `bundle exec middleman server` - to start middleman's built in server
8+
- `open http://localhost:4567` - to open the example in your browser
99

1010
## Building a Static Copy of the Site
1111

1212
- `bundle install`
13-
- `bower install`
13+
- `npm install`
1414
- `bundle exec middleman build`
1515

1616
Check the `build` directory for the output.

bower.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def call(sprockets_asset)
8989
config.imported_asset_path = ImportedAssetPathProcessor.new(app)
9090
end
9191

92-
sprockets.append_path File.join(root, "components")
92+
sprockets.append_path File.join(root, "node_modules")
9393

9494
redirect "contact/index.html", to: "/support/"
9595

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "product-page-example",
3+
"private": "true",
4+
"version": "1.0.0",
5+
"description": "This is an example product page for use by GaaP products.",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/alphagov/product-page-example.git"
9+
},
10+
"author": "Government Digital Service developers",
11+
"license": "MIT",
12+
"bugs": {
13+
"url": "https://github.com/alphagov/product-page-example/issues"
14+
},
15+
"homepage": "https://github.com/alphagov/product-page-example#readme",
16+
"dependencies": {
17+
"gaap-analytics": "^2.2.1",
18+
"govuk-elements-sass": "^3.1.1",
19+
"govuk_frontend_toolkit": "^7.0.1",
20+
"govuk_template_jinja": "^0.22.3"
21+
},
22+
"devDependencies": {
23+
"napa": "^3.0.0"
24+
},
25+
"scripts": {
26+
"install": "napa"
27+
},
28+
"napa": {
29+
"govuk_template": "alphagov/govuk_template#v0.22.3"
30+
}
31+
}

source/cookies.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Cookies - GOV.UK Pay
33
---
44

5-
<nav class="breadcrumbs" aria-label="Breadcrumbs">
5+
<nav class="breadcrumbs" aria-label="Breadcrumbs" data-click-events data-click-category="Header" data-click-action="Breadcrumb clicked">
66
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
77
<li class="breadcrumbs__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
88
<a href="https://www.gov.uk/service-toolkit#components" itemprop="item"><span itemprop="name">Components</span></a>
@@ -33,7 +33,7 @@ title: Cookies - GOV.UK Pay
3333

3434
<p>You’ll normally see a message on the site before we store a cookie on your computer.</p>
3535

36-
<p>Find out <a href="http://www.aboutcookies.org/">how to manage cookies</a>.</p>
36+
<p>Find out <a href="http://www.aboutcookies.org/" data-click-events data-click-category="Content" data-click-action="External link clicked">how to manage cookies</a>.</p>
3737

3838
<h2 class="heading-medium">Session cookie</h2>
3939

source/features.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Features - GOV.UK Pay
33
---
44

5-
<nav class="breadcrumbs" aria-label="Breadcrumbs">
5+
<nav class="breadcrumbs" aria-label="Breadcrumbs" data-click-events data-click-category="Header" data-click-action="Breadcrumb clicked">
66
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
77
<li class="breadcrumbs__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
88
<a href="https://www.gov.uk/service-toolkit#components" itemprop="item"><span itemprop="name">Components</span></a>
@@ -18,7 +18,7 @@ title: Features - GOV.UK Pay
1818
<div class="container">
1919
<div class="grid-row">
2020
<div class="column-one-third">
21-
<nav class="sub-navigation">
21+
<nav class="sub-navigation" data-click-events data-click-category="Content" data-click-action="Button clicked">
2222
<ol itemscope itemtype="http://schema.org/ItemList">
2323
<li class="sub-navigation__item sub-navigation__item--active" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
2424
<a href="/features" itemprop="item"><span itemprop="name">Features</span></a>
@@ -63,7 +63,7 @@ title: Features - GOV.UK Pay
6363
<li>switch PSPs without additional technical work (technical integration is provider-agnostic)</li>
6464
</ul>
6565
<h2 class="heading-medium">Queries and suggestions</h2>
66-
<p>If you want to find out more about these features, or have some needs that GOV.UK Pay isn’t yet meeting, please get in touch with us by emailing <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk">govuk-pay-support@digital.cabinet-office.gov.uk</a> or chat with us in our <a href="https://ukgovernmentdigital.slack.com/messages/govuk-pay">cross-government Slack channel</a>.</p>
66+
<p>If you want to find out more about these features, or have some needs that GOV.UK Pay isn’t yet meeting, please get in touch with us by emailing <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk" data-click-events data-click-category="Content" data-click-action="Email link clicked">govuk-pay-support@digital.cabinet-office.gov.uk</a> or chat with us in our <a href="https://ukgovernmentdigital.slack.com/messages/govuk-pay" data-click-events data-click-category="Content" data-click-action="External link clicked">cross-government Slack channel</a>.</p>
6767
</div>
6868
</div>
6969
</div>

source/getstarted.html.erb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Get started - GOV.UK Pay
33
---
44

5-
<nav class="breadcrumbs" aria-label="Breadcrumbs">
5+
<nav class="breadcrumbs" aria-label="Breadcrumbs" data-click-events data-click-category="Header" data-click-action="Breadcrumb clicked">
66
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
77
<li class="breadcrumbs__item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
88
<a href="https://www.gov.uk/service-toolkit#components" itemprop="item"><span itemprop="name">Components</span></a>
@@ -28,14 +28,14 @@ title: Get started - GOV.UK Pay
2828
</h2>
2929
<div class="task-list-items">
3030
<p>If you are a central government organisation with a new or existing digital service, and want to take card payments online, then GOV.UK&nbsp;Pay should be suitable for you.</p>
31-
<p>Review GOV.UK Pay’s <a href="/features">top features and roadmap</a> and decide if it meets your service’s needs.</p>
31+
<p>Review GOV.UK Pay’s <a href="/features" data-click-events data-click-category="Content" data-click-action="Internal link clicked">top features and roadmap</a> and decide if it meets your service’s needs.</p>
3232
</div>
3333

3434
<h2 class="task-list-section">
3535
<span class="task-list-section-number">2.</span> Create an account
3636
</h2>
3737
<div class="task-list-items">
38-
<p>Test GOV.UK Pay for yourself by <a href="https://selfservice.payments.service.gov.uk/create-service/register">creating an account</a>. You can explore the test environment, and use the same account details when you’re ready to go live.</p>
38+
<p>Test GOV.UK Pay for yourself by <a href="https://selfservice.payments.service.gov.uk/create-service/register" data-click-events data-click-category="Content" data-click-action="Internal link clicked">creating an account</a>. You can explore the test environment, and use the same account details when you’re ready to go live.</p>
3939
<p>You can also connect your service prototype with GOV.UK Pay to test how it works with your users.</p>
4040
</div>
4141

@@ -45,22 +45,22 @@ title: Get started - GOV.UK Pay
4545
<div class="task-list-items">
4646
<p>Share information about GOV.UK&nbsp;Pay with your broader team. Managing payments usually involves people from a number of different teams: digital, operational delivery and finance, for example.</p>
4747

48-
<p> You can <a href="https://selfservice.payments.service.gov.uk/my-services">invite team members</a> from the My Services area of your GOV.UK&nbsp;Pay admin tool. You may want to send our <a href="https://govukpay-docs.cloudapps.digital">documentation</a> to your technical and finance teams.</p>
48+
<p> You can <a href="https://selfservice.payments.service.gov.uk/my-services" data-click-events data-click-category="Content" data-click-action="Internal link clicked">invite team members</a> from the My Services area of your GOV.UK&nbsp;Pay admin tool. You may want to send our <a href="https://govukpay-docs.cloudapps.digital" data-click-events data-click-category="Content" data-click-action="Internal link clicked">documentation</a> to your technical and finance teams.</p>
4949
</div>
5050

5151
<h2 class="task-list-section">
5252
<span class="task-list-section-number">4.</span> Integrate your service with GOV.UK&nbsp;Pay
5353
</h2>
5454
<div class="task-list-items">
55-
<p>Your technical team can find information about integrating and API references in our <a href="https://govukpay-docs.cloudapps.digital">documentation</a>.</p>
55+
<p>Your technical team can find information about integrating and API references in our <a href="https://govukpay-docs.cloudapps.digital" data-click-events data-click-category="Content" data-click-action="Internal link clicked">documentation</a>.</p>
5656
</div>
5757

5858
<h2 class="task-list-section">
5959
<span class="task-list-section-number">5.</span> Sign GOV.UK Pay’s agreements
6060
</h2>
6161
<div class="task-list-items">
6262
<p>Your organisation needs to sign GOV.UK Pay’s Memorandum of Understanding and your team needs to agree to our Terms of Use.</p>
63-
<p>Contact GOV.UK Pay on <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk">govuk-pay-support@digital.cabinet-office.gov.uk</a> to receive our agreements.</p>
63+
<p>Contact GOV.UK Pay on <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk" data-click-events data-click-category="Content" data-click-action="Email link clicked">govuk-pay-support@digital.cabinet-office.gov.uk</a> to receive our agreements.</p>
6464
</div>
6565

6666
<h2 class="task-list-section">
@@ -69,18 +69,18 @@ title: Get started - GOV.UK Pay
6969
<div class="task-list-items">
7070
<p>You will need to have a contract for Payment Gateway and Merchant Acquiring services with a Payment Service Provider, who will process the payments taken using GOV.UK Pay. We will support the suppliers listed on the relevant Crown Commercial Service framework: Barclays, Global Payments, Stripe, WorldPay.</p>
7171
<div class="panel panel-border-wide">
72-
<p>If you don’t have one already, then avoid any procurement work by signing up with the Government Banking Service. They have an existing contract that’s open to central government and health sector organisations. Contact the Government Banking helpdesk at <a href="mailto:helpdesk.gbs@hmrc.gsi.gov.uk">helpdesk.gbs@hmrc.gsi.gov.uk</a> if you’d like to learn more and sign up.</p>
72+
<p>If you don’t have one already, then avoid any procurement work by signing up with the Government Banking Service. They have an existing contract that’s open to central government and health sector organisations. Contact the Government Banking helpdesk at <a href="mailto:helpdesk.gbs@hmrc.gsi.gov.uk" data-click-events data-click-category="Content" data-click-action="Email link clicked">helpdesk.gbs@hmrc.gsi.gov.uk</a> if you’d like to learn more and sign up.</p>
7373
</div>
74-
<p>When you have a Payment Service Provider, you need to make sure it is set up to work with GOV.UK Pay. We have instructions for <a href="https://govukpay-docs.cloudapps.digital/#switching-to-production">configuring your account</a> in our documentation. </p>
75-
<p><a href="/support">Contact GOV.UK Pay</a> if you’d like more advice on contracting.</p>
74+
<p>When you have a Payment Service Provider, you need to make sure it is set up to work with GOV.UK Pay. We have instructions for <a href="https://govukpay-docs.cloudapps.digital/#switching-to-production" data-click-events data-click-category="Content" data-click-action="Internal link clicked">configuring your account</a> in our documentation. </p>
75+
<p><a href="/support" data-click-events data-click-category="Content" data-click-action="Internal link clicked">Contact GOV.UK Pay</a> if you’d like more advice on contracting.</p>
7676
</div>
7777

7878
<h2 class="task-list-section">
7979
<span class="task-list-section-number">7.</span> Configure GOV.UK Pay for your service and go live
8080
</h2>
8181
<div class="task-list-items">
82-
<p>You can update your settings for things like accepted card types in the <a href="https://selfservice.payments.service.gov.uk/">GOV.UK Pay admin tool</a> before you begin taking payments.</p>
83-
<p>Contact GOV.UK Pay when you’re ready to go live, at <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk">govuk-pay-support@digital.cabinet-office.gov.uk</a></p>
82+
<p>You can update your settings for things like accepted card types in the <a href="https://selfservice.payments.service.gov.uk/" data-click-events data-click-category="Content" data-click-action="Internal link clicked">GOV.UK Pay admin tool</a> before you begin taking payments.</p>
83+
<p>Contact GOV.UK Pay when you’re ready to go live, at <a href="mailto:govuk-pay-support@digital.cabinet-office.gov.uk" data-click-events data-click-category="Content" data-click-action="Email link clicked">govuk-pay-support@digital.cabinet-office.gov.uk</a></p>
8484
</div>
8585
</ol>
8686
</div>

0 commit comments

Comments
 (0)