Using Beamer in your website is as simple as copying the default embed snippet from the Embed section in your Control Panel, and pasting it inside the <body> element of your website.
For your own site’s performance, you should paste this snippet at the very bottom of the <body>, so that the rest of your content is loaded first.
The embed snippet is composed of two parts:
- Declaration of the beamer_config object, which contains your configuration parameters for Beamer.
- Import of beamer-embed.js
Although we recommend pasting the script as shown in the Embed section (changing only the configuration parameters as you need), keep in mind that you can separate these two parts and declare the beamer_config object elsewhere in your site’s code. However, the declaration of the configuration object must always take place before importing the beamer-embed.js script.
We are proud to announce that our WordPress plugin is now available! If you need more information just follow this quick guide to get Beamer going on your WordPress page!
String. This code identifies your product in Beamer. The value shown in the Embed section already corresponds to your product, so it should not be changed. Required
String. HTML id for the DOM element to be used as a trigger to show the panel. Optional
The simplest way to use the selector parameter is to pass in the element ID of the HTML element that you want to use as a button to open up the panel, and over which the notification bubble will be rendered.
For example, if you have a menu on your site, and one of the options in it has HTML code like this:
<div id="beamerButton">What's new</div>
You can simply use the selector parameter like selector: ‘beamerButton’, and that’s it! Clicking on that element will open the panel.
It is not necessary to put in any element ID for Beamer to work on your site. If you don’t add any element ID by default Beamer will show a notification icon in the bottom-right corner of your page (preview in your account in the Appearance tab in Settings).
If you want to have a custom menu item for your users to open Beamer you need to add that to your website, assign the menu item an ID to identify it and then send that ID to Beamer’s script via this parameter. If using WordPress, ID will be assigned automatically.
But remember that is optional – you are free to not put any element ID and Beamer will automatically add a nice looking icon for you.
Apart from passing in a single id, you may want to select your button by its HTML class, select more than one button or a combination of both!
If you want to select an element by its class, simply add an initial dot ( . ) to your selector. So for example, if you have a menu on your site, and one of your options has HTML code like this:
<div class="beamerButton">What's new</div>
You can use the selector parameter like selector: ‘.beamerButton’.
Keep in mind that if more than one elements share the same class you are selecting, all of them will be initialized as buttons and will open the panel.
If you want to use multiple selectors to select more than one button, separate them with commas ( , ).
To combine IDs and classes in your multiple selector, add an initial hash ( # ) before each id. Your selector parameter would look something like this: selector: ‘#beamerId, .beamerClass’.
If you don’t want the element (matched by selector) to open your Beamer feed when clicked, but still want the alert counter to be rendered over the element, you can add the attribute data-beamer-click=”false” to your HTML element:
<div class="beamerButton" data-beamer-click="false">What's new</div>
The attribute data-beamer-click=”false” will make the element look the same (with the alert counter rendered whenever there are any unread posts), but clicking on this element will make no effect by default. This is useful if you want to take full control of what your element does when clicked.
String. Display option for the embedded feed. Possible values are ‘left’, ‘right’, ‘popup’ and ‘in-app’.
For the default sidebar display, possible values are ‘left’ and ‘right’. This will be the side of the screen on which the sidebar will be shown.
Using ‘popup’, the feed will show up in a floating, rounded container automatically positioned depending on where the selector element is placed.
Using ‘in-app’, the feed will show up in a smaller floating container positioned automatically next to the selector element. This feed will show a shortened version of the posts when first opened, where the full content of a post is shown with an animated transition if its short version is clicked on. This display option can be used in combination with the display_position parameter. Optional (default: ‘right’).
String. (Only applies when using display: ‘in-app’) Fixed position for the in-app display, relative to the selector element.
Possible values are ‘top’, ‘top-left’, ‘top-right’, ‘right’, ‘right-bottom’, ‘right-top’, ‘bottom’, ‘bottom-left’, ‘bottom-right’, ‘left’, ‘left-bottom’ and ‘left-top’. Optional (default: the feed will be positioned next to the selector element, on the side where the most space is available).
Number. The top position offset for the notification bubble. Optional (default: 0)
Number. The right position offset for the notification bubble. Optional (default: 0)
Number. The bottom position offset for the notification bubble. Optional (default: 0)
Number. The left position offset for the notification bubble. Optional (default: 0)
embed pro only
Boolean. If true, Beamer’s feed will be embedded and displayed inside the element selected by the selector parameter. The feed will resize to fit its container. Optional (default: false)
Boolean. If false, the default button will not be shown, even if no selector parameter is specified. Optional (default: true)
String. Position for the notification button (which opens the Beamer panel) that shows up when the selector parameter is not set. Valid positions are ‘top-left’, ‘top-right’, ‘bottom-right’ and ‘bottom-left’ Optional (default: ‘bottom-right’)
String. Alternative icon to display in the notification button. Valid icons are ‘bell_full’, ‘bell_lines’, ‘flame’, ‘flame_alt’, ‘alert_bubble’, ‘alert_circle’, ‘bullhorn’ and ‘thumbtack’ Optional (default: ‘bell_full’)
Boolean. If false, the notification bubble will not be animated with the default ‘bounce’ effect. Optional (default: true)
String. Override the method selected in Settings to prompt users for permission to send them web push notifications. Valid options are ‘popup’ and ‘sidebar’. Optional
Number. Delay (in milliseconds) before showing the web push notifications prompt. Optional (default: 0)
String. Retrieve only posts that have a translation in this language. Optional (default: EN)
String. Retrieve posts with segment filters that match or include this value (example: if a post has segment filters equal to ‘admin’ or ‘admin;user’, and this value equals ‘admin’, the post will be retrieved; otherwise, if this value equals ‘manager’, the post will not be retrieved). This parameter can include several filters separated by semicolons (‘;’), which don’t need to follow any specific order (example: if the value for this parameter equals ‘admin;manager’, all posts with segment filters equal to either ‘admin’, ‘manager’ or both will be retrieved). All posts without segment filters will be retrieved regardless.Optional
Boolean. Retrieve posts with a segment URL that matches the one the user is currently in (example: if a post has a segment URL value of ‘https://app.getbeamer.com/home’, the post will only be visible if the user opening the panel is currently in that URL). If this parameter is true, the window’s current URL will be matched against the segment URLs of the posts that have one. If false, the current URL will be ignored (no posts with segment URLs will be retrieved). Optional (default: false)
Boolean. If false, Beamer will not show up on mobile devices. Optional (default: true)
Boolean. If true, the Beamer plugin won’t be initialized automatically: in this case, it will only be initialized once the static method Beamer.init() is called. If false, the plugin will be initialized automatically, binding the selector element accordingly. Optional (default: false)
Boolean. If true, the selector element will open the panel when clicked. If false, the selector parameter will be ignored, and the panel will only be opened programmatically via the static methods Beamer.show() and Beamer.hide() (however, these methods can be invoked regardless of alert‘s value). Optional (default: true)
Boolean. If true, the selector parameter is ignored and the default button is rendered in your site. If false, the selector parameter is used to define the button in your site. Optional (default: false)
Boolean. If true, the alert counter is rendered over the button element (whenever there are new unread posts). If false, the alert counter is not rendered (clicking on the element will still open the embedded feed). Optional (default: true)
Number. Number of unread posts to show in the alert counter when a user visits your site for the first time. Optional (default: 1)
Boolean. If true, clicking on the button element or calling Beamer.show() will open your standalone feed in a new tab (instead of opening the embedded feed). If false, the embedded feed is opened (default behavior). Optional (default: false)
post_request enterprise only
Boolean. If true, the initialization request is done with the POST method. If false, the request is done with the GET method. Optional (default: false)
Number. Delay (in milliseconds) before initializing Beamer. Optional (default: 0)
Function. Function to be called once the plugin is initialized (automatically if lazy is false, or after calling Beamer.init() if lazy is true). The callback function can receive a single parameter with the number of new posts available (this number is the same shown over the selector element when used). Optional
Function. Function to be called when a user clicks a link in one of your posts. The function receives two parameters: The URL (string) of the link clicked, and a flag indicating if the link was opened in a new window (boolean; true if the link is opened in a new window, false if it’s opened in the same window). If this function returns false, the click event is cancelled (and the link is not opened). If no onclick value is specified, the default function will log a ‘click’ event on Google Analytics (where available). Optional [onclick(url, openInNewWindow)]
Function. Function to be called when the Beamer panel is being opened. If this function returns false, the open event is cancelled and the panel remains closed. If no onopen value is specified, the default function will log an ‘open’ event on Google Analytics (where available). Optional
Function. Function to be called when the Beamer panel is being closed. If this function returns false, the close event is cancelled and the panel remains open. If no onclose value is specified, the default function will log a ‘close’ event on Google Analytics (where available). Optional
Function. Function to be called when the initialization request fails. This request is fired automatically when initializing the script (or after Beamer.init() is called, if using lazy initialization).Optional
String. First name of the user currently browsing your site, to be shown in your accounts statistics. Optional
String. Last name of the user currently browsing your site, to be shown in your accounts statistics. Optional
String. Email of the user currently browsing your site, to be shown in your accounts statistics. Optional
String. ID of the user currently browsing your site, to be shown in your accounts statistics. Optional
Boolean. Only applicable if using the user_id parameter, in a scenario in which two or more different users might enter your site from the same physical device and browser. If true, Beamer will count unread posts separately for each distinct user_id entering your site from the same device and browser. If false, unread posts are counted as if the device and browser are associated to a single real user (even if the user_id changes). Optional (default: false)
These methods are meant for advanced use only, and may need to be used in combination with some of the parameters described above.
Initializes Beamer in your site (only necessary when using the parameter lazy: true to prevent automatic initialization).
Shows the embedded feed in your site.
Hides the embedded feed in your site.
Updates the configuration parameters for Beamer. The method receives a JSON object containing any of the parameters to update (following the same format as the beamer_config object that defines the initial parameters).
The object passed to this method only needs to contain the parameters to update. Any other parameters that were defined in beamer_config (but not sent to this method) will keep the same value.
Removes Beamer from your site, including all elements and bindings inserted by the script.
The following cookies are always created or updated by the embed script at some point, when using the default configuration.
Stores the date of this user’s first visit to the site. Duration: 3000 days
Stores an internal ID for this user. Duration: 300 days
Stores the timestamp for the last time the number of unread posts was updated for this user. Duration: 3000 days
Stores whether to apply URL filtering on the feed. Duration: 20 minutes
Stores the latest date in which the feed was opened. Duration: 300 days
The following cookies may or may not be present, depending on your Beamer settings and the parameters sent to the embed script.
Stores the ID of the last post shown as a teaser. Duration: 300 days
Stores whether the notification sound was played since the last time the feed was opened. Duration: 7 days
Stores the date of this user’s latest interaction with the prompt requesting permission to send push notifications. Duration: 300 days
In the Home section, you can see all of your product’s posts, ordered by publication date (the latest being above). From here, you can create new posts with the big red plus button on the top right corner of the page, or edit existing posts with the pencil icon on the top right corner of each post’s frame. With the trash icon, you can delete any of these posts.
In the General tab, you can configure your product’s basic information, such as name, description and homepage URL.
You can also define a domain restriction for Beamer: If you insert a URL in this field, your Beamer plugin (more specifically, any Beamer plugin using your product’s code) will only work in the defined domain. By default, this field is blank, which means Beamer will work on any page with your embed snippet.
The Feed & Panel section allows you to modify several settings that affect the feed as shown to your users. Some of these configurations can be overriden by the embedded script parameters if you are using them (for example, the default button position will be overriden by the button_position parameter, if used).
In the User tab, you can configure your account’s personal information, such as email, password, and position on your team.
Within the Team tab, you can invite new users to collaborate with your product’s posts, and modify their access roles as necessary.
Below this, you’ll find the Roles subsection, where all the roles of your team are listed. For each of these, you can enable or disable permissions associated with all the different actions a user in your Beamer account can perform, such as creating and publishing posts, accessing the appearance settings, modifying your account’s billing information, and more.
Once you modify a certain role’s permissions, this modification will apply to all users that have been granted that role.
The four basic roles have a set of permissions enabled by default, where the Manager role is the one with the most permissions, while the Read-only role has no permissions enabled.
Keep in mind there is a fifth role that cannot be modified: the Administrator role, which has all permissions enabled. The original creator of the account is granted this role by default, but new users can be set as administrators as well.
In the Languages tab within this section, you can select the default languages for which you will be creating translations when creating new posts. For example, if your target audience speaks English, Spanish, Portuguese and French, you’ll want to have these selected so that the next time you create a post, the tabs for each of these translations will already pop up for you to fill in.
You can also reorder the languages, the first one being the default language, so that when you create a post without a translation to a certain language, the language shown will fallback to said default.
When a post is shown to your user, this is the way Beamer will select the translation to show:
- If the language parameter is set in the embed script, the post will show that language’s translation, if available.
- If no language parameter is set, Beamer will detect the user’s browser language and show the matching translation for it, if available.
- If no translation is available for this user’s language, the translation to the default language will be shown
Below this, you’ll find the Translations subsection, where you can modify the different default labels shown to users in the panel, such as your posts’ category names, and translate each of them to the languages selected in the previous tab.
Within the Appearance tab, you can modify the basic appearance of Beamer’s panel as shown on your site, such as background colors and font size. On the left, a quick preview is shown and updated in real time to visualize these modifications as you make them.
For more advanced modifications, you can override Beamer’s predefined styles by adding CSS code in the Custom CSS subsection. We recommend not to use this method unless you need to modify the panel’s appearance beyond what can be done in the Appearance tab. Keep in mind that some changes can be done to the panel in the future (more specifically, changes to the HTML content in it), which can cause issues with whatever custom CSS code you add here.
In the Billing tab, you can first take a look at the available billing plans for your Beamer account, with all the features included and their price. Once you select a plan, you can insert or modify the information of the credit card with which you’ll be paying for the service.
Currently, we support payments from most credit cards and banks. However, if you experience any issues when trying to update your billing information, please contact us through our support chat to get quick assistance.
Within the Embed section, you can copy the default embed snippet to insert Beamer in your site just by pasting it. In this snippet, you’ll notice some comments indicating all the parameters available for you to customize the plugin.
For more information on this, refer to the Embed snippet docs.
Within the Integrations section, you’ll be able to easily integrate Beamer with many other external services – without any coding!
In the Analytics section, you can get an insight on how you are reaching your users with Beamer. Browsing through the tabs, you can get to know how many total visitors, unique visitors, total views, unique views and clicks your posts had between two dates.
This data is summarized in a line chart on top to get a quick view, but you can get more precise information on your visitors in the table below this chart, where you can see each visitor’s first and last view, their geographical origin, their browser, the number of impressions, and more. You can also sort and search the table by any of its columns, and modify the time range you’re interested in.
In the Feedback section, you can get an insight on the feedback comments received in all your posts.
In the Privacy section, you can search and delete (permanently) all the stored data associated to a user from your site.
At the bottom-left corner of the dashboard, you’ll see your current account’s product name. Clicking on it will open up the multi-accounts submenu, where you’ll be able to create new accounts (associated to the same email), which you’ll then be able to access from that same menu.
If you had already created another account with a different email and want to merge them into one single account, you use the merge accounts option.
On top of the editor, you’ll see one or more tabs labeled with the default languages selected in the Languages section of the Control Panel. When clicking on each of this, you’ll be able to write and edit the title and content of the post for each of these languages separately. If you want to clear all text within one of these tabs, simply click the Clear button at the bottom of the editor.
Keep in mind that if you leave one or more of these tabs empty, the post will not have a translation associated with the corresponding language, and users with said language will not see this post. This can be used as a way to segment your content.
Below the translation tabs, you’ll find a date input, with a default value of the current day: this will be the publication date of your post. If left unchanged, your post will be pushed instantly (as long as you Save and publish it). If set to a later date, the post will only show up to users from that date onwards.
Next to the ‘publication date’ input, you’ll find a secondary (optional) input to set an expiration date for the post. If a date is set, the published post will stop being visible from that date onwards.
Enable the ‘Pin to top of feed’ option to show this post at the top of your feed. Doing so will cause any posts previously pinned will be un-pinned.
Keep in mind that all other conditions, such as publication and expiration dates, segment filters and segment URLs, will be applied to the pinned post as well.
On the right, a drop-down menu will let you select this post’s category. By default, the category of a post within Beamer’s panel is shown at the top left corner, right before the publication date, with a colored label.
Apart from a set of pre-defined common categories, you can define a custom category for your posts by selecting Other in the drop-down menu.
This will be the title of your post, shown on top of it, below the category and publication date.
This will be the body of your post. Within the content editor, you can write plain text or give it some format just like you would in your average text editor. But you can also add a lot more content: Clicking the big + button shown right next to your cursor will open the embed menu.
Inside the embed menu, clicking on the camera icon will let you upload images and gifs right into the text editor. Clicking on the video button right next to it will let you embed not only videos (from YouTube, Vimeo and more), but also content from Twitter, Instagram or Facebook, by just pasting the URL right into the editor. After pasting the URL, simply press enter to load the content in the editor.
Below the content editor, you’ll find two inputs prompting you to insert your link’s URL and text. If you fill these inputs, a link will be shown below the body of your post, redirecting to the inserted URL and showing the inserted text. For example, this can be useful if you want to redirect your users to another section of your website in relation to the post they’ve just read.
Enabling the ‘Open links in new tab’ option when creating the post will cause the main link (and any other links within the content of the post) to be opened in a new tab or window in the browser. Disabling the option will cause the links to be opened in the same tab.
This value is directly related to the filter parameter for the embed script. If you want a post to only be visible to some of your users, you can use these.
For example, let’s say you only want a post to show up to your ‘administrator’ users: First step would be to make sure that, when loading your website for an administrator user, you initialize Beamer’s embed script with some value in the filter parameter. In this case, you’d pass in the string ‘administrator’. After this, you’d only need to write that same value (‘administrator’) inside the Segment filters input in your post editor, whenever you want a post to only be visible to administrators.
Keep in mind that you can use more than one segment filter in your posts, simply by separating each value with a semicolon (‘;’) character, in the same way, you can do it for the filter parameter for the embed script.
This value is directly related to the filter_by_url parameter for the embed script. If you want a post to only be visible from certain URLs, you can use this option.
For example, let’s say you only want a post to show up when the user is in ‘https://app.getbeamer.com/home’: First step would be to make sure that the filter_by_url parameter is set to true for the embedded script. Then, add the URL ‘https://app.getbeamer.com/home’ in the ‘Segment URLs’ input when creating or editing the post.
Keep in mind that you can use more than one segment URLs in your posts, simply by separating each with a semicolon (‘;’) character.
Enabling the ‘Send push notification’ option will cause a web push notification to be sent to all your subscribed users once the post becomes published.
User Engagement and Feedback
With hidden comments, you can allow your users to send you feedback by commenting on a post. These comments are ‘hidden’ since users won’t be able to see others’ comments, while you will be able to see them all.
When creating a post, check the Hidden comments option to enable the comment input below the post shown to users in the Beamer panel.
With reactions, users have a quick and simple way to provide feedback to your posts. With three emoji-shaped buttons, your users can send a ‘good’, ‘neutral’ or ‘bad’ reaction to a post. This can provide you some quick insight from more users that may not be willing to go as far as actually writing a comment.
When creating a post, check the Reactions option to enable the buttons below the post shown to users in the Beamer panel.
Social media sharing
When creating a post, check the Social media sharing option to enable a ‘share’ button in your posts, which allows your users to quickly share the post on Facebook, Twitter and other platforms.
For feedback-enabled posts, you can get a closer look at your users’ comments and reactions by clicking on the stats shown below the post within the Home section.
We just launched a beta version of our API and Zapier integration. Hooray! Check our API documentation here.
Create custom segment filters (like industry, product, role, location, language, behavior or others) to target specific members of your audience. Pass your segments to the Beamer script in the filter parameter. You’ll have to keep track of your segments and users on your own, or you can use our Advanced Segmentation feature to keep track for you.
Advanced segmentation beta enterprise only
Advanced segmentation allows you to send targeted messages to specific groups of users. But the real power of advanced segmentation comes from the ability to create segments directly in your Beamer dashboard from your own user base using AND/OR logic to combine and specify the target audience.
Custom CSS is a special feature available for our Pro and Enterprise users. With custom CSS you can add your own CSS code to change the appearance of your Beamer widget to fit your site perfectly. The custom CSS will overwrite Beamer’s default styles on the widget.
If you need help installing Beamer, follow one of our how-to guides:
- How to install Beamer on your website or app
- How to use Beamer as a WordPress Plugin?
- How to add Beamer to Squarespace
- How to use Beamer with Simvoly web builder
We have a topic focused Help Center with the most common questions we receive.