Skip to content

Commit

Permalink
Shorten part of the namespace to just GA_GTM
Browse files Browse the repository at this point in the history
  • Loading branch information
zarocknz committed Dec 20, 2018
1 parent a642aae commit 706c1bb
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Place two template includes into your theme's main template, e.g. Page.ss.
<meta charset="utf-8">
<title itemprop="name">$Title</title>

<% include Chrometoaster\GaGtmSinglefield\GA_GTM_head %>
<% include Chrometoaster\GA_GTM\GA_GTM_head %>
```

#### Body

`<% include Chrometoaster\GaGtmSinglefield\GA_GTM_body %>` directly after the opening `<body>` tag:
`<% include Chrometoaster\GA_GTM\GA_GTM_body %>` directly after the opening `<body>` tag:

```html
</head>
<body>
<% include Chrometoaster\GaGtmSinglefield\GA_GTM_body %>
<% include Chrometoaster\GA_GTM\GA_GTM_body %>
```


Expand Down
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Name: ga-gtm-singlefield
---
SilverStripe\SiteConfig\SiteConfig:
extensions:
- Chrometoaster\GaGtmSinglefield\Extensions\GASiteConfigExtension
- Chrometoaster\GA_GTM\Extensions\GASiteConfigExtension
4 changes: 2 additions & 2 deletions src/extensions/GASiteConfigExtension.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Chrometoaster\GaGtmSinglefield\Extensions;
namespace Chrometoaster\GA_GTM\Extensions;

use Chrometoaster\GaGtmSinglefield\Formfields\GACodeField;
use Chrometoaster\GA_GTM\Formfields\GACodeField;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;

Expand Down
2 changes: 1 addition & 1 deletion src/formfields/GACodeField.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Chrometoaster\GaGtmSinglefield\Formfields;
namespace Chrometoaster\GA_GTM\Formfields;

use SilverStripe\Forms\TextField;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% with $SiteConfig %>
<% if $GoogleCode %>
<% if $AnalyticType == 'GTM' %>
<% include Chrometoaster\GaGtmSinglefield\Includes\GTM_body %>
<% include Chrometoaster\GA_GTM\Includes\GTM_body %>
<% end_if %>
<% if $AnalyticType == 'UA' %>
<% include Chrometoaster\GaGtmSinglefield\Includes\GA_body %>
<% include Chrometoaster\GA_GTM\Includes\GA_body %>
<% end_if %>
<% end_if %>
<% end_with %>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% with $SiteConfig %>
<% if $GoogleCode %>
<% if $AnalyticType == 'GTM' %>
<% include Chrometoaster\GaGtmSinglefield\Includes\GTM_head %>
<% include Chrometoaster\GA_GTM\Includes\GTM_head %>
<% end_if %>
<% if $AnalyticType == 'UA' %>
<% include Chrometoaster\GaGtmSinglefield\Includes\GA_head %>
<% include Chrometoaster\GA_GTM\Includes\GA_head %>
<% end_if %>
<% end_if %>
<% end_with %>

0 comments on commit 706c1bb

Please sign in to comment.