{"id":50852,"date":"2016-09-14T17:51:52","date_gmt":"2016-09-14T17:51:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/appboy-web-sdk\/"},"modified":"2018-02-02T22:50:52","modified_gmt":"2018-02-02T22:50:52","slug":"appboy-web-sdk","status":"closed","type":"plugin","link":"https:\/\/de.wordpress.org\/plugins\/appboy-web-sdk\/","author":15076302,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"2.0.0","requires":"2.0.0","requires_php":"","requires_plugins":"","header_name":"Appboy Web SDK","header_author":"Appboy, Inc.","header_description":"","assets_banners_color":"ffffff","last_updated":"2018-02-02 22:50:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/appboy.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":886,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1495883","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1495893","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[232,1150,456,36213,37033],"plugin_category":[36,55],"plugin_contributors":[130151],"plugin_business_model":[],"class_list":["post-50852","plugin","type-plugin","status-closed","hentry","plugin_tags-analytics","plugin_tags-crm","plugin_tags-marketing","plugin_tags-sdk","plugin_tags-segmentation","plugin_category-analytics","plugin_category-seo-and-marketing","plugin_contributors-appboydev","plugin_committers-appboydev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/appboy-web-sdk_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Effective marketing automation is an essential part of successfully scaling and managing your business. Braze empowers you to build better customer relationships through a seamless, multi-channel approach that addresses all aspects of the user life cycle. Braze helps you engage your users on an ongoing basis.<\/p>\n\n<h3>Configuring The Plugin<\/h3>\n\n<p>Once you have the Braze Web SDK plugin installed and activated, navigate to <code>Settings<\/code> in your admin panel and click on <code>Braze Web SDK<\/code>. You will be directed to the settings page for the plugin. You will will see a list of options to configure your plugin. You <strong>must<\/strong> enter a valid <code>API Key<\/code> in order for the plugin to be initialized properly on your site. Once you have configured the plugin using the options form, click <code>Save Changes<\/code>. Navigate to your site and view the source of your HTML page. You should see something very similar to the following in the <code>&lt;head&gt;<\/code> section of your site:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\"&gt;\n  +function(a,p,P,b,y) {\n    (y = a.createElement(p)).type = 'text\/javascript';\n    y.src = 'https:\/\/js.appboycdn.com\/web-sdk\/2.0&gt;\/appboy.min.js';\n    (c = a.getElementsByTagName(p)[0]).parentNode.insertBefore(y, c);\n    if (y.addEventListener) {\n      y.addEventListener('load', b, false);\n    } else if (y.readyState) {\n      y.onreadystatechange = b;\n    }\n  }(document, 'script', 'link', function() {\n    appboy.initialize({{ YOUR API_KEY HERE }});\n    appboy.display.automaticallyShowNewInAppMessages();\n    appboy.openSession();\n  });\n&lt;\/script&gt;\n<\/code><\/pre>\n\n<h3>Configuring your site for Web Push<\/h3>\n\n<p>In order to send web push notifications on your WordPress site, please make sure your domain is <a href=\"https:\/\/www.braze.com\/documentation\/Web\/#push-notifications\">configured for push<\/a>.<\/p>\n\n<h3>Testing Your Configuration<\/h3>\n\n<p>The easiest way to test if your plugin is configured properly is to open the JavaScript console on your site and enter <code>appboy<\/code>. If you see <code>Object {ab: Object, display: Object, sharedLib: Object}<\/code>, the web SDK is on your site and you now have access to the global <code>appboy<\/code> object. If you see <code>Uncaught ReferenceError: appboy is not defined<\/code>, you do not have the plugin configured properly.<\/p>\n\n<p>Another way to make sure the plugin is configured correctly is to go back to the settings page for the plugin and select <code>Enable Logging<\/code>. Go back to a page on your site and view the JavaScript console. If you see messages from <code>appboy<\/code>, your plugin has been configured successfully and you now have access to the global <code>appboy<\/code> object. <strong>NOTE:<\/strong> while it is useful to enable logging for testing and debugging, it is recommended that you unselect <code>Enable Logging<\/code> in production.<\/p>\n\n<h3>Troubleshooting<\/h3>\n\n<p>If you see errors in your JavaScript console from <code>appboy<\/code>, here are some resources that can help you troubleshoot:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.braze.com\/documentation\/Web\/\">Documentation<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Appboy\/appboy-web-sdk\">Public Repository<\/a><\/li>\n<li><a href=\"https:\/\/js.appboycdn.com\/web-sdk\/2.0\/doc\/module-appboy.html\">Full Technical Documentation<\/a><\/li>\n<\/ul>","raw_excerpt":"Braze empowers you to build better customer relationships through a multi-channel approach.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/50852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=50852"}],"author":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/appboydev"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=50852"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=50852"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=50852"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=50852"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=50852"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=50852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}