Skip to content

Instantly share code, notes, and snippets.

@sillypog
Created November 19, 2014 19:25
Show Gist options
  • Save sillypog/d010f5c314dc717e5ed1 to your computer and use it in GitHub Desktop.
Save sillypog/d010f5c314dc717e5ed1 to your computer and use it in GitHub Desktop.
Bluegreen socialarticle results 11/19/14
prod_prism=# SELECT variation, action, count(action) as total FROM production_campaigns WHERE campaign_type='bluegreen' GROUP BY variation, action;
variation | action | total
-----------+---------------+----------
blue | impression | 17434052
green | impression | 602006
| impression | 355
blu | impression | 3
3 | impression | 3
bl | conversion | 1
blue | conversion | 4221029
blue | share-attempt | 23081
blue | share-success | 6547
green | share-success | 225
1 | impression | 36
green | share-attempt | 768
b | conversion | 3
| conversion | 30
b | impression | 10
green | conversion | 124313
1 | conversion | 5
bl | impression | 5
(18 rows)
prod_prism=# SELECT variation, social_account, count(social_account) as share_attempts FROM production_campaigns WHERE campaign_type='bluegreen' AND action='share-attempt' GROUP BY variation, social_account ORDER BY social_account, variation;
variation | social_account | share_attempts
-----------+----------------+----------------
blue | facebook | 14150
green | facebook | 477
blue | google-plus | 1444
green | google-plus | 36
blue | reddit | 558
green | reddit | 25
blue | twitter | 7007
green | twitter | 233
(8 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment