How to Configure Shopify Conversion Tracking

https://docs.shopify.com/manual/settings/checkout/google-adwords





SilverStripe Report Export to CSV Error

The export columns need to be set in order for the csv generator to function properly.

Updating getReportField() in cms/code/report/Report.php like below will fix this issue

 

public function getReportField() {
// TODO Remove coupling with global state
$params = isset($_REQUEST[‘filters’]) ? $_REQUEST[‘filters’] : array();
$items = $this->sourceRecords($params, null, null);
$exportButton = new GridFieldExportButton(‘buttons-after-left’);

$gridFieldConfig = GridFieldConfig::create()->addComponents(
new GridFieldToolbarHeader(),
new GridFieldSortableHeader(),
new GridFieldDataColumns(),
new GridFieldPaginator(),
new GridFieldButtonRow(‘after’),
new GridFieldPrintButton(‘buttons-after-left’),
$exportButton
);
$gridField = new GridField(‘Report’,false, $items, $gridFieldConfig);
$columns = $gridField->getConfig()->getComponentByType(‘GridFieldDataColumns’);
$displayFields = array();
$fieldCasting = array();
$fieldFormatting = array();

// Parse the column information
foreach($this->columns() as $source => $info) {
if(is_string($info)) $info = array(‘title’ => $info);

if(isset($info[‘formatting’])) $fieldFormatting[$source] = $info[‘formatting’];
if(isset($info[‘csvFormatting’])) $csvFieldFormatting[$source] = $info[‘csvFormatting’];
if(isset($info[‘casting’])) $fieldCasting[$source] = $info[‘casting’];

if(isset($info[‘link’]) && $info[‘link’]) {
$fieldFormatting[$source] = function($value, &$item) {
return sprintf(
%s‘,
Controller::join_links(singleton(‘CMSPageEditController’)->Link(‘show’), $item->ID),
$value
);
};
}

$displayFields[$source] = isset($info[‘title’]) ? $info[‘title’] : $source;
}
$columns->setDisplayFields($displayFields);
$columns->setFieldCasting($fieldCasting);
$columns->setFieldFormatting($fieldFormatting);
$exportButton->setExportColumns($displayFields);
return $gridField;
}

 

I Ain’t Afraid of No Ghost Referrals

If you have unrealistic traffic in your Google Analytics or you see some Referral URLs that seem a little fishy, then likely they do not belong. These websites are called Ghost Referrals and they clog up your analytics account with junk data. For a more accurate representation of your site’s realistic analytics you need to create filters in order to remove these Ghosts.

Known List of Referral Spam

Google Analytics Regular Expressions
floating-share-buttons.com|free-social-buttons.com|4webmasters.org|trafficmonetizer.org|traffic2money.com|free-floating-buttons.com|get-free-social-traffic.com|event-tracking.com|Get-Free-Traffic-Now.com|chinese-amezon.com|e-buyeasy.com

.*((darodar|priceg|buttons\-for(\-your)?\-website|makemoneyonline|blackhatworth|hulfingtonpost|o\-o\-6\-o\-o|(social|(simple|free|floating)\-share)\-buttons)\.com|econom\.co|ilovevitaly(\.co(m)?)|(ilovevitaly(\.ru))|(humanorightswatch|guardlink)\.org).*

.*((best(websitesawards|\-seo\-(solution|offer))|get\-free(\-social)?\-traffic(\-now)?|googlsucks)\.com|(domination|torture)\.ml|((rapidgator\-)?(general)?porn(hub(\-)?forum)?|4webmasters)\.(ga|tk|org|uni)|(buy\-cheap\-online)\.info).*

.*((event\-tracking|semalt(media)?|(100dollars|success)\-seo|chinese\-amezon|e\-buyeasy|theguardlan|webmaster\-traffic)\.com|traffic(monetize(r)?|2money)\.(org|com)|pops\.foundation|erot\.co).*

Additional Resources