nystudio107 /
craft-instantanalytics
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Instant Analytics plugin for Craft CMS |
||
| 4 | * |
||
| 5 | * Instant Analytics brings full Google Analytics support to your Twig templates |
||
| 6 | * |
||
| 7 | * @link https://nystudio107.com |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 8 | * @copyright Copyright (c) 2017 nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 9 | */ |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Instant Analytics en Translation |
||
| 13 | * |
||
| 14 | * Returns an array with the string to be translated (as passed to `Craft::t('instant-analytics', '...')`) as |
||
| 15 | * the key, and the translation as the value. |
||
| 16 | * |
||
| 17 | * http://www.yiiframework.com/doc-2.0/guide-tutorial-i18n.html |
||
| 18 | * |
||
| 19 | * @author nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 20 | * @package InstantAnalytics |
||
|
0 ignored issues
–
show
|
|||
| 21 | * @since 1.0.0 |
||
|
0 ignored issues
–
show
|
|||
| 22 | */ |
||
| 23 | return [ |
||
| 24 | '{name} plugin loaded' => '{name} plugin loaded', |
||
| 25 | 'Craft Commerce is not installed' => 'Craft Commerce is not installed', |
||
| 26 | 'Created sendPageView for: {eventCategory} - {eventAction} - {eventLabel} - {eventValue}' => 'Created sendPageView for: {eventCategory} - {eventAction} - {eventLabel} - {eventValue}', |
||
| 27 | 'Created eventTrackingUrl for: {trackingUrl}' => 'Created eventTrackingUrl for: {trackingUrl}', |
||
| 28 | 'Created pageViewTrackingUrl for: {trackingUrl}' => 'Created pageViewTrackingUrl for: {trackingUrl}', |
||
| 29 | 'Analytics excluded for:: {requestIp} due to: `{setting}`' => 'Analytics excluded for:: {requestIp} due to: `{setting}`', |
||
| 30 | 'Created sendPageView for: {url} - {title}' => 'Created sendPageView for: {url} - {title}', |
||
| 31 | 'Created generic analytics object' => 'Created generic analytics object', |
||
| 32 | 'Analytics not sent because googleAnalyticsTracking is not set' => 'Analytics not sent because googleAnalyticsTracking is not set', |
||
| 33 | 'pageView sent, response:: {response}' => 'pageView sent, response:: {response}', |
||
| 34 | 'addCommerceCheckoutStep step: `{step}` with option: `{option}`' => 'addCommerceCheckoutStep step: `{step}` with option: `{option}`', |
||
| 35 | 'removeFromCart for `Commerce` - `Remove to Cart` - `{title}` - `{quantity}`' => 'removeFromCart for `Commerce` - `Remove to Cart` - `{title}` - `{quantity}`', |
||
| 36 | 'Manifest file not found at: {manifestPath}' => 'Manifest file not found at: {manifestPath}', |
||
| 37 | 'orderComplete for `Commerce` - `Purchase` - `{reference}` - `{price}`' => 'orderComplete for `Commerce` - `Purchase` - `{reference}` - `{price}`', |
||
| 38 | 'addCommerceProductImpression for `{sku}` - `{name}` - `{name}` - `{index}`' => 'addCommerceProductImpression for `{sku}` - `{name}` - `{name}` - `{index}`', |
||
| 39 | 'Module does not exist in the manifest: {moduleName}' => 'Module does not exist in the manifest: {moduleName}', |
||
| 40 | 'addCommerceProductDetailView for `{sku}` - `{name} - `{name}`' => 'addCommerceProductDetailView for `{sku}` - `{name} - `{name}`', |
||
| 41 | 'addToCart for `Commerce` - `Add to Cart` - `{title}` - `{quantity}`' => 'addToCart for `Commerce` - `Add to Cart` - `{title}` - `{quantity}`', |
||
| 42 | 'orderComplete for `Commerce` - `Purchase` - `{number}` - `{price}`' => 'orderComplete for `Commerce` - `Purchase` - `{number}` - `{price}`', |
||
| 43 | 'addCommerceProductDetailView for `{sku}` - `{name}`' => 'addCommerceProductDetailView for `{sku}` - `{name}`' |
||
| 44 | ]; |
||
| 45 |