Vanilla Script Tag
Script Tag Setup
Configure the vanilla JavaScript integration using script attributes.
Basic setup
<script src="https://cdn.cornercue.com/widget.js" data-cc-key="YOUR_PROJECT_ID" defer></script>Script attributes
| Attribute | Required | Description |
|---|---|---|
data-cc-key | Yes | Default project ID for all trigger buttons. |
data-cc-float | No | Enables auto-created floating button. |
data-cc-float-position | No | bottom-right or bottom-left. |
data-cc-float-offset | No | Distance from viewport edge in pixels. |
data-cc-float-color | No | FAB background color. |
data-cc-float-size | No | FAB diameter in px. |
data-cc-float-type | No | Opens directly with bug, feature, or feedback. |
data-cc-float-tooltip | No | Tooltip text for auto-FAB. |
Trigger button basics
<button data-cc-btn>Feedback</button><button data-cc-btn data-cc-key="OTHER_PROJECT_ID">Feedback for another project</button>The button-level data-cc-key overrides the script-level data-cc-key.